org.cip4.jdflib.datatypes
Class JDFRange
java.lang.Object
org.cip4.jdflib.datatypes.JDFRange
- All Implemented Interfaces:
- JDFBaseDataTypes
- Direct Known Subclasses:
- JDFDateTimeRange, JDFDurationRange, JDFIntegerRange, JDFNameRange, JDFNumberRange, JDFRectangleRange, JDFShapeRange, JDFXYPairRange
public abstract class JDFRange
- extends java.lang.Object
- implements JDFBaseDataTypes
This class must be changed to abstract if possible.
|
Method Summary |
boolean |
equals(java.lang.Object other)
equals - returns true if both JDFDateTimeRange are equal, otherwise false |
protected abstract java.lang.Object |
getLeftObject()
|
protected abstract java.lang.Object |
getRightObject()
|
int |
hashCode()
hashCode: complements equals() to fulfill the equals/hashCode contract |
protected boolean |
inObjectRange(java.lang.Object other)
|
abstract boolean |
isPartOfRange(JDFRange ra)
isPartOfRange - is range 'ra' within this range? |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
JDFRange
public JDFRange()
isPartOfRange
public abstract boolean isPartOfRange(JDFRange ra)
- isPartOfRange - is range 'ra' within this range?
- Parameters:
ra - the range to test
- Returns:
- boolean - true if range 'r' is within this range, else false
equals
public boolean equals(java.lang.Object other)
- equals - returns true if both JDFDateTimeRange are equal, otherwise false
- Overrides:
equals in class java.lang.Object
- Parameters:
other - Object to compare
- Returns:
- boolean - true if equal, otherwise false
hashCode
public int hashCode()
- hashCode: complements equals() to fulfill the equals/hashCode contract
- Overrides:
hashCode in class java.lang.Object
- Returns:
- int
getRightObject
protected abstract java.lang.Object getRightObject()
getLeftObject
protected abstract java.lang.Object getLeftObject()
inObjectRange
protected boolean inObjectRange(java.lang.Object other)