@Test public void testCompareTo() { Assert.assertFalse(STRING1.compareTo(STRING2) == 0); Assert.assertTrue(CIS1.compareTo(CIS2) == 0); }
@Override public int compareTo(final CaseInsensitiveString other) { return name.compareTo(other.name); }
CaseInsensitiveString implements Comparable<CaseInsensitiveString> { @Override public int compareTo(final CaseInsensitiveString other) { return name.compareTo(other.name); } }
CaseInsensitiveString implements Comparable<CaseInsensitiveString> { @Override public int compareTo(final CaseInsensitiveString other) { return name.compareTo(other.name); } CaseInsensitiveString(final String name); }
CaseInsensitiveString implements Comparable<CaseInsensitiveString> { @Override public int compareTo(final CaseInsensitiveString other) { return name.compareTo(other.name); } CaseInsensitiveString(final String name); @Override int compareTo(final CaseInsensitiveString other); @Override boolean equals(final Object obj); @Override int hashCode(); @Override String toString(); }
CaseInsensitiveString implements Comparable<CaseInsensitiveString> { @Override public int compareTo(final CaseInsensitiveString other) { return name.compareTo(other.name); } CaseInsensitiveString(final String name); @Override int compareTo(final CaseInsensitiveString other); @Override boolean equals(final Object obj); @Override int hashCode(); @Override String toString();  }