net.sourceforge.toscanaj.model.manyvaluedcontext
Class Criterion
java.lang.Object
net.sourceforge.toscanaj.model.manyvaluedcontext.Criterion
- All Implemented Interfaces:
- Ordered
- public class Criterion
- extends java.lang.Object
- implements Ordered
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Criterion
public Criterion(ManyValuedAttribute property,
ScaleColumn valueGroup)
getProperty
public ManyValuedAttribute getProperty()
getValueGroup
public ScaleColumn getValueGroup()
getDisplayString
public java.lang.String getDisplayString()
toString
public java.lang.String toString()
isLesserThan
public boolean isLesserThan(Ordered other)
- Description copied from interface:
Ordered
- Compares the current with another object on ordering.
- Specified by:
isLesserThan
in interface Ordered
- Parameters:
other
- the object to compare to, must not be null
- Returns:
- true iff the current object is considered less than the one passed
isEqual
public boolean isEqual(Ordered other)
- Description copied from interface:
Ordered
- Compare the current with another object on equality.
This can be useful if a different notion of equality should be used than
the one implemented by Object.equals(Object). Otherwise it should be just
mapped to the latter (which in turn might map to reference identity).
Note that this method does not accept null values. This also means when
overriding it by mapping it to the standard equals method, a check for
null should be done first.
- Specified by:
isEqual
in interface Ordered
- Parameters:
other
- the object to compare to, must not be null
- Returns:
- true iff the current object is considered equal to the one passed
The ToscanaJ project