javax.rad.type
Class AbstractComparableType<T extends Comparable<T>>
java.lang.Object
javax.rad.type.AbstractType<T>
javax.rad.type.AbstractComparableType<T>
- Type Parameters:
T
- type instanceof Comparable
.
- All Implemented Interfaces:
- IType<T>
- Direct Known Subclasses:
- AbstractNumberType, BooleanType, StringType
public abstract class AbstractComparableType<T extends Comparable<T>>
- extends AbstractType<T>
The AbstractComparableType
is the base implementation for all comparable types.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractComparableType
public AbstractComparableType()
compareTo
public int compareTo(T pObject1,
Object pObject2)
- Compares two objects.
If the first object is smaller than the second object a value < 0 is returned.
If the two objects are equal than 0 is returned.
If the first object is greater than the second object a value > 0 is returned.
- Parameters:
pObject1
- the first object.pObject2
- the second object.
- Returns:
- < 0 if pObject1 is smaller, 0 if equal and > 0 if it is greater then pObject2
Copyright © 2009 SIB Visions GmbH. All Rights Reserved.