@Test public void compareTo() { assertEquals(-1, Source.UNKNOWN.compareTo(Source.DEFAULT)); assertEquals(-1, Source.DEFAULT.compareTo(Source.CLUSTER_DEFAULT)); assertEquals(-1, Source.CLUSTER_DEFAULT.compareTo(Source.siteProperty(""))); assertEquals(-1, Source.Type.SITE_PROPERTY.compareTo(Source.Type.SYSTEM_PROPERTY)); assertEquals(-1, Source.Type.SYSTEM_PROPERTY.compareTo(Source.Type.PATH_DEFAULT)); assertEquals(-1, Source.PATH_DEFAULT.compareTo(Source.RUNTIME)); assertEquals(-1, Source.RUNTIME.compareTo(Source.MOUNT_OPTION)); }
@Override public int compareTo(Source other) { return mType.compareTo(other.mType); }
Source implements Comparable<Source> { @Override public int compareTo(Source other) { return mType.compareTo(other.mType); } }
Source implements Comparable<Source> { @Override public int compareTo(Source other) { return mType.compareTo(other.mType); } private  Source(Type type); }
Source implements Comparable<Source> { @Override public int compareTo(Source other) { return mType.compareTo(other.mType); } private  Source(Type type); Type getType(); static Source siteProperty(String filename); @Override int compareTo(Source other); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString(); }
Source implements Comparable<Source> { @Override public int compareTo(Source other) { return mType.compareTo(other.mType); } private  Source(Type type); Type getType(); static Source siteProperty(String filename); @Override int compareTo(Source other); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString(); static final Source UNKNOWN; static final Source DEFAULT; static final Source CLUSTER_DEFAULT; static final Source SYSTEM_PROPERTY; static final Source PATH_DEFAULT; static final Source RUNTIME; static final Source MOUNT_OPTION; }