Package com.google.cloud.firestore
Class BasePath<B extends BasePath<B>>
java.lang.Object
com.google.cloud.firestore.BasePath<B>
- All Implemented Interfaces:
Comparable<B>
- Direct Known Subclasses:
FieldPath
BasePath represents a path sequence in the Firestore database. It is composed of an ordered
sequence of string segments.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
BasePath
public BasePath()
-
-
Method Details
-
compareTo
Compare the current path against another Path object.Compare the current path against another Path object. Paths are compared segment by segment, prioritizing numeric IDs (e.g., "__id123__") in numeric ascending order, followed by string segments in lexicographical order.
- Specified by:
compareToin interfaceComparable<B extends BasePath<B>>- Parameters:
other- The path to compare to.- Returns:
- -1 if current is less than other, 1 if current greater than other, 0 if equal
-