org.cip4.jdflib.datatypes
Class JDFRange

java.lang.Object
  extended by 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.


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
JDFRange()
           
 
Method Summary
 boolean equals(Object other)
          equals - returns true if both JDFDateTimeRange are equal, otherwise false
protected abstract  Object getLeftObject()
           
protected abstract  Object getRightObject()
           
 String getString(int precision)
          get a string with precision digits after each decimal
 int hashCode()
          hashCode: complements equals() to fulfill the equals/hashCode contract
protected  boolean inObjectRange(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
 

Constructor Detail

JDFRange

public JDFRange()
Method Detail

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.