public abstract class JDFRangeList extends Object implements JDFBaseDataTypes
JDFBaseDataTypes.EnumFitsValue
Modifier and Type | Field and Description |
---|---|
protected Vector<JDFRange> |
rangeList |
EPSILON, MAX_CMYK_COLOR, MAX_LAB_COLOR, MAX_MATRIX_DIMENSION, MAX_RECTANGLE_DIMENSION, MAX_RGB_COLOR, MAX_SHAPE_DIMENSION, MAX_XY_DIMENSION
Constructor and Description |
---|
JDFRangeList()
constructor
|
Modifier and Type | Method and Description |
---|---|
JDFRange |
at(int i)
at(i) - get the i-th range element
|
JDFRange |
begin()
begin() - returns the first JDFDateTimeRange of the JDFDateTimeRangeList
|
void |
clear()
cleanup and empty the internal storge
|
Object |
elementAt(int i)
getElementAt - returns the element at the ith position
|
JDFRange |
end()
begin() - returns the last JDFDateTimeRange of the JDFDateTimeRangeList
|
boolean |
equals(Object other)
equals - returns true if both JDFNumberRangeList are equal otherwise false
|
void |
erase(int i)
erase(i) - Removes the i-th element of the range list
|
String |
getString()
Deprecated.
060418 use toString
|
String |
getString(int precision)
toString - serialize to string
|
int |
hashCode()
hashCode complements equals() to fulfill the equals/hashCode contract
|
boolean |
isList()
isList - tests if 'this' is a List
|
abstract boolean |
isOrdered() |
boolean |
isPartOfRange(JDFRange x)
isPartOfRange - check whether range 'x' is in the range defined by 'this'
|
boolean |
isPartOfRange(JDFRangeList x)
isPartOfRange - check whether JDFRangeList 'x' is within this range list
|
boolean |
isUnique()
isUnique - tests if 'this' has only unique values
|
abstract boolean |
isUniqueOrdered()
isUniqueOrdered - tests if
this has only unique values and if
the values are ordered |
void |
remove(int i)
remove - removes an object from the vector
|
int |
size()
number of Duration range elements
|
String |
toString()
toString - serialize to string
|
public final Object elementAt(int i)
i
- the position of the element to be retrievedpublic final void remove(int i)
i
- the index of the element to removepublic final boolean isPartOfRange(JDFRange x)
x
- JDFRange to testpublic final boolean isPartOfRange(JDFRangeList x)
x
- the range list to test@Deprecated public final String getString()
public final String toString()
public final String getString(int precision)
public final int size()
public final void clear()
public final JDFRange at(int i)
i
- index of the range to retrievepublic final JDFRange begin()
public final JDFRange end()
public final void erase(int i)
i
- index of element (range) to removepublic final boolean isList()
public final boolean equals(Object other)
public final int hashCode()
public abstract boolean isUniqueOrdered()
this has only unique values and if
the values are ordered
public final boolean isUnique()
public abstract boolean isOrdered()
Copyright © 2018. All rights reserved.