@Test public void equals() { new EqualsTester() .addEqualityGroup(Source.siteProperty("/tmp/123"), Source.siteProperty("/tmp/123")) .addEqualityGroup(Source.siteProperty("/tmp/456")) .addEqualityGroup(Source.RUNTIME) .testEquals(); }
@Override public boolean equals(Object o) { if (this == o) { return true; } if (!(o instanceof Source)) { return false; } Source other = (Source) o; return compareTo(other) == 0; }
Source implements Comparable<Source> { @Override public boolean equals(Object o) { if (this == o) { return true; } if (!(o instanceof Source)) { return false; } Source other = (Source) o; return compareTo(other) == 0; } }
Source implements Comparable<Source> { @Override public boolean equals(Object o) { if (this == o) { return true; } if (!(o instanceof Source)) { return false; } Source other = (Source) o; return compareTo(other) == 0; } private  Source(Type type); }
Source implements Comparable<Source> { @Override public boolean equals(Object o) { if (this == o) { return true; } if (!(o instanceof Source)) { return false; } Source other = (Source) o; return compareTo(other) == 0; } 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 boolean equals(Object o) { if (this == o) { return true; } if (!(o instanceof Source)) { return false; } Source other = (Source) o; return compareTo(other) == 0; } 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; }