@Test(expected = Throwable.class) public void testUnevenNumberOfSegmentsAreRejected() { DocumentKey.fromSegments(Collections.singletonList("a")); }
public static DocumentKey fromSegments(List<String> segments) { return new DocumentKey(ResourcePath.fromSegments(segments)); }
DocumentKey implements Comparable<DocumentKey> { public static DocumentKey fromSegments(List<String> segments) { return new DocumentKey(ResourcePath.fromSegments(segments)); } }
DocumentKey implements Comparable<DocumentKey> { public static DocumentKey fromSegments(List<String> segments) { return new DocumentKey(ResourcePath.fromSegments(segments)); } private  DocumentKey(ResourcePath path); }
DocumentKey implements Comparable<DocumentKey> { public static DocumentKey fromSegments(List<String> segments) { return new DocumentKey(ResourcePath.fromSegments(segments)); } private  DocumentKey(ResourcePath path); static Comparator<DocumentKey> comparator(); static ImmutableSortedSet<DocumentKey> emptyKeySet(); static DocumentKey empty(); static DocumentKey fromName(String name); static DocumentKey fromPath(ResourcePath path); static DocumentKey fromSegments(List<String> segments); static DocumentKey fromPathString(String path); static boolean isDocumentKey(ResourcePath path); ResourcePath getPath(); boolean hasCollectionId(String collectionId); @Override int compareTo(@NonNull DocumentKey another); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString(); }
DocumentKey implements Comparable<DocumentKey> { public static DocumentKey fromSegments(List<String> segments) { return new DocumentKey(ResourcePath.fromSegments(segments)); } private  DocumentKey(ResourcePath path); static Comparator<DocumentKey> comparator(); static ImmutableSortedSet<DocumentKey> emptyKeySet(); static DocumentKey empty(); static DocumentKey fromName(String name); static DocumentKey fromPath(ResourcePath path); static DocumentKey fromSegments(List<String> segments); static DocumentKey fromPathString(String path); static boolean isDocumentKey(ResourcePath path); ResourcePath getPath(); boolean hasCollectionId(String collectionId); @Override int compareTo(@NonNull DocumentKey another); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString(); static final String KEY_FIELD_NAME; }