Stay organized with collections Save and categorize content based on your preferences.
Represents a property path returned from searching the AppSearch Database.
One of the use cases for this class is when searching the AppSearch Database for the snippet matching use case. In this case you will get back SearchResult.MatchInfo
objects that contain a property path signifying the location of a match within the database. This is a string that may look something like "foo.bar[0]". PropertyPath
parses this string and breaks it up into a List of PropertyPath.PathSegment
s. These may represent either a property or a property and a 0-based index into the property. For instance, "foo.bar[1]" would be parsed into a PropertyPath.PathSegment
with a property name of foo and a PropertyPath.PathSegment
with a property name of bar and an index of 1. This allows for easier manipulation of the property path.
This class won't perform any retrievals, it will only parse the path string. As such, it may not necessarily refer to a valid path in the database.
Nested Class Summary class PropertyPath.PathSegment A segment of a PropertyPath, which includes the name of the property and a 0-based index into this property. Public Constructor Summary Public Method Summary Inherited Method Summary From class java.lang.Object Objectclone()
boolean voidfinalize()
final Class<?>getClass()
inthashCode()
final voidnotify()
final voidnotifyAll()
StringtoString()
final voidwait(long arg0, int arg1)
final voidwait(long arg0)
final voidwait()
From interface java.lang.Iterable Public Constructors public PropertyPath (List<PropertyPath.PathSegment> pathList)Constructor directly accepting a path list
Parameters pathList a list of PathSegments public PropertyPath (String path)Constructor that parses a string representing the path to populate a List of PathSegments
Parameters path the string to be validated and parsed into PathSegments Public Methods public boolean equals (Object o) public String toString ()Returns a valid path string representing this PropertyPath
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-10-31 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-10-31 UTC."],[[["`PropertyPath` represents the location of a match within the AppSearch database, like \"foo.bar[0]\"."],["It parses these paths into segments (e.g., \"foo\", \"bar[1]\") for easier manipulation."],["`PropertyPath` only parses the path string and doesn't validate it against the actual database."],["You can access individual path segments and iterate through them."],["It's used in search results, specifically within `SearchResult.MatchInfo`, to indicate the match location."]]],[]]
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4