Package 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
This class must be changed to abstract if possible.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.cip4.jdflib.datatypes.JDFBaseDataTypes
JDFBaseDataTypes.EnumFitsValue -
Field Summary
Fields inherited from interface org.cip4.jdflib.datatypes.JDFBaseDataTypes
EPSILON, MAX_CMYK_COLOR, MAX_LAB_COLOR, MAX_MATRIX_DIMENSION, MAX_RECTANGLE_DIMENSION, MAX_RGB_COLOR, MAX_SHAPE_DIMENSION, MAX_XY_DIMENSION -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanequals - returns true if both JDFDateTimeRange are equal, otherwise falseprotected abstract ObjectgetLeftString(int precision) protected abstract ObjectgetRightString(int precision) getString(int precision) get a string with precision digits after each decimalgetXJDFString(int precision) get a string with precision digits after each decimalinthashCode()hashCode: complements equals() to fulfill the equals/hashCode contractprotected booleaninObjectRange(Object other) abstract booleanisPartOfRange - is range 'ra' within this range?toString()
-
Constructor Details
-
JDFRange
public JDFRange()
-
-
Method Details
-
isPartOfRange
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
equals - returns true if both JDFDateTimeRange are equal, otherwise false -
hashCode
public int hashCode()hashCode: complements equals() to fulfill the equals/hashCode contract -
getRightObject
-
getLeftObject
-
inObjectRange
-
getString
get a string with precision digits after each decimal- Parameters:
precision-- Returns:
-
getXJDFString
get a string with precision digits after each decimal- Parameters:
precision-- Returns:
-
getRightString
-
getLeftString
-
toString
-