@Test public void compareToTests() { TachyonURI[] uris = new TachyonURI[] { new TachyonURI("file: new TachyonURI("glusterfs: new TachyonURI("hdfs: new TachyonURI("hdfs: new TachyonURI("hdfs: new TachyonURI("hdfs: new TachyonURI("hdfs: new TachyonURI("hdfs: new TachyonURI("s3: for (int i = 0; i < uris.length - 1; i ++) { Assert.assertTrue(uris[i].compareTo(uris[i + 1]) < 0); Assert.assertTrue(uris[i + 1].compareTo(uris[i]) > 0); Assert.assertEquals(0, uris[i].compareTo(uris[i])); } }
@Override public int compareTo(TachyonURI other) { return mUri.compareTo(other.mUri); }
TachyonURI implements Comparable<TachyonURI> { @Override public int compareTo(TachyonURI other) { return mUri.compareTo(other.mUri); } }
TachyonURI implements Comparable<TachyonURI> { @Override public int compareTo(TachyonURI other) { return mUri.compareTo(other.mUri); } TachyonURI(String pathStr);  TachyonURI(String scheme, String authority, String path);  TachyonURI(TachyonURI parent, TachyonURI child); }
TachyonURI implements Comparable<TachyonURI> { @Override public int compareTo(TachyonURI other) { return mUri.compareTo(other.mUri); } TachyonURI(String pathStr);  TachyonURI(String scheme, String authority, String path);  TachyonURI(TachyonURI parent, TachyonURI child); @Override int compareTo(TachyonURI other); @Override boolean equals(Object o); String getAuthority(); int getDepth(); String getHost(); String getName(); TachyonURI getParent(); String getPath(); int getPort(); String getScheme(); boolean hasAuthority(); @Override int hashCode(); boolean hasScheme(); boolean isAbsolute(); boolean isPathAbsolute(); TachyonURI join(String suffix); TachyonURI join(TachyonURI suffix); @Override String toString(); }
TachyonURI implements Comparable<TachyonURI> { @Override public int compareTo(TachyonURI other) { return mUri.compareTo(other.mUri); } TachyonURI(String pathStr);  TachyonURI(String scheme, String authority, String path);  TachyonURI(TachyonURI parent, TachyonURI child); @Override int compareTo(TachyonURI other); @Override boolean equals(Object o); String getAuthority(); int getDepth(); String getHost(); String getName(); TachyonURI getParent(); String getPath(); int getPort(); String getScheme(); boolean hasAuthority(); @Override int hashCode(); boolean hasScheme(); boolean isAbsolute(); boolean isPathAbsolute(); TachyonURI join(String suffix); TachyonURI join(TachyonURI suffix); @Override String toString(); static final String SEPARATOR; static final String CUR_DIR; }