public abstract class BasePath<B> implements Comparable<B>
BasePath represents a path sequence in the Firestore database. It is composed of an ordered sequence of string segments.
Implements
Comparable<B>Type Parameter |
|
---|---|
Name | Description |
B |
Constructors
BasePath()
public BasePath()
Methods
compareTo(B other)
public int compareTo(B other)
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.
Parameter | |
---|---|
Name | Description |
other |
B The path to compare to. |
Returns | |
---|---|
Type | Description |
int |
-1 if current is less than other, 1 if current greater than other, 0 if equal |