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 Object
- implements JDFBaseDataTypes
This class must be changed to abstract if possible.
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(Object other)
- equals - returns true if both JDFDateTimeRange are equal, otherwise false
- Overrides:
equals in class 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 Object
- Returns:
- int
getRightObject
protected abstract Object getRightObject()
getLeftObject
protected abstract Object getLeftObject()
inObjectRange
protected boolean inObjectRange(Object other)
getString
public String getString(int precision)
- get a string with precision digits after each decimal
- Parameters:
precision -
- Returns:
Copyright © 2013. All Rights Reserved.