org.jutil.compare
Class LessThan
java.lang.Object
org.jutil.compare.ObjectComparator
org.jutil.compare.LessThan
- All Implemented Interfaces:
- java.io.Externalizable, java.io.Serializable, java.util.Comparator, VersionedObject
public final class LessThan
- extends ObjectComparator
This is the LessThan Comparator class.
- See Also:
- Serialized Form
|
Method Summary |
int |
compare(java.lang.Object obj1,
java.lang.Object obj2)
|
boolean |
equals(java.lang.Object obj)
|
Version |
getVersion()
Overide the superclass getVersion() to return this sub classe's
Version |
void |
readExternal(java.io.ObjectInput in)
|
java.lang.String |
toString()
|
void |
writeExternal(java.io.ObjectOutput out)
|
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
LessThan
public LessThan()
LessThan
public LessThan(java.lang.Object obj)
equals
public boolean equals(java.lang.Object obj)
- Specified by:
equals in interface java.util.Comparator- Overrides:
equals in class ObjectComparator
compare
public int compare(java.lang.Object obj1,
java.lang.Object obj2)
- Specified by:
compare in interface java.util.Comparator- Overrides:
compare in class ObjectComparator
toString
public java.lang.String toString()
- Overrides:
toString in class ObjectComparator
writeExternal
public void writeExternal(java.io.ObjectOutput out)
throws java.io.IOException
- Specified by:
writeExternal in interface java.io.Externalizable- Overrides:
writeExternal in class ObjectComparator
- Throws:
java.io.IOException
readExternal
public void readExternal(java.io.ObjectInput in)
throws java.io.IOException,
java.lang.ClassNotFoundException
- Specified by:
readExternal in interface java.io.Externalizable- Overrides:
readExternal in class ObjectComparator
- Throws:
java.io.IOException
java.lang.ClassNotFoundException
getVersion
public Version getVersion()
- Overide the superclass getVersion() to return this sub classe's
Version
- Specified by:
getVersion in interface VersionedObject- Overrides:
getVersion in class ObjectComparator