public class AlphabeticalComparator extends Object implements Comparator<Reference>, Serializable
Constructor and Description |
---|
AlphabeticalComparator() |
Modifier and Type | Method and Description |
---|---|
int |
compare(Reference ref0,
Reference ref1)
Compares two references.
|
int |
compare(String str0,
String str1)
Compares two strings.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
comparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
public int compare(Reference ref0, Reference ref1)
compare
in interface Comparator<Reference>
ref0
- The first reference.ref1
- The second reference.Comparator
public int compare(String str0, String str1)
str0
- The first string.str1
- The second string.Comparator
Copyright © 2005–2018. All rights reserved.