|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.cip4.jdflib.datatypes.JDFRangeList
public abstract class JDFRangeList
This abstract class is the representation of a range list. Intern these object are collected in a vector and there are several methods to provide an access to the data. A range has the following format : "1~3.4" The class member Vector rangeList contains for example "1~3.4" , "7~5"
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.cip4.jdflib.datatypes.JDFBaseDataTypes |
|---|
JDFBaseDataTypes.EnumFitsValue |
| Field Summary | |
|---|---|
protected Vector<JDFRange> |
rangeList
|
| 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 | |
|---|---|
JDFRangeList()
constructor |
|
| Method Summary | |
|---|---|
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 |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected Vector<JDFRange> rangeList
| Constructor Detail |
|---|
public JDFRangeList()
| Method Detail |
|---|
public final Object elementAt(int i)
i - the position of the element to be retrieved
public final void remove(int i)
i - the index of the element to removepublic final boolean isPartOfRange(JDFRange x)
x - JDFRange to test
public final boolean isPartOfRange(JDFRangeList x)
x - the range list to test
@Deprecated public final String getString()
public final String toString()
toString in class Objectpublic 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 retrieve
public 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)
equals in class Objectpublic final int hashCode()
hashCode in class Objectpublic abstract boolean isUniqueOrdered()
this has only unique values and if
the values are ordered
- Returns:
- true if values are unique and ordered, otherwise false
public final boolean isUnique()
public abstract boolean isOrdered()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||