java.io.Serializable, java.util.Comparator<java.lang.Class>public class ClassCompare
extends java.lang.Object
implements java.util.Comparator<java.lang.Class>, java.io.Serializable
| Constructor | Description |
|---|---|
ClassCompare() |
| Modifier and Type | Method | Description |
|---|---|---|
protected int |
charGroup(char c) |
returns the group of the character: 0=special char, 1=number, 2=letter.
|
int |
compare(java.lang.Class o1,
java.lang.Class o2) |
Compares its two arguments for order.
|
boolean |
equals(java.lang.Object obj) |
Indicates whether some other object is "equal to" this Comparator.
|
protected java.lang.String |
fillUp(java.lang.String s,
int len) |
appends blanks to the string if its shorter than
len. |
java.lang.String |
globalInfo() |
Returns a string describing the object.
|
public java.lang.String globalInfo()
protected java.lang.String fillUp(java.lang.String s,
int len)
len.s - the string to padlen - the minimum length for the string to haveprotected int charGroup(char c)
c - the character to checkpublic int compare(java.lang.Class o1,
java.lang.Class o2)
compare in interface java.util.Comparator<java.lang.Class>o1 - the first classo2 - the second classpublic boolean equals(java.lang.Object obj)
equals in interface java.util.Comparator<java.lang.Class>equals in class java.lang.Objectobj - the object to compare with this ComparatorCopyright © 2018 University of Waikato, Hamilton, NZ. All Rights Reserved.