public class JDFIntegerList extends JDFNumList
JDFNumList.NormComparator, JDFNumList.VolumeComparatorJDFBaseDataTypes.EnumFitsValueEPSILON, MAX_CMYK_COLOR, MAX_LAB_COLOR, MAX_MATRIX_DIMENSION, MAX_RECTANGLE_DIMENSION, MAX_RGB_COLOR, MAX_SHAPE_DIMENSION, MAX_XY_DIMENSION| Constructor and Description |
|---|
JDFIntegerList()
constructs an empty range list
|
JDFIntegerList(int i)
constructs an integer list with all values set via an int
|
JDFIntegerList(int[] iArray)
constructs an integer list with all values set via an int[]
|
JDFIntegerList(JDFIntegerList il)
constructs an integer list with all values set via a JDFIntegerList
|
JDFIntegerList(java.lang.String s)
constructs an integer list with all values set via a String
|
| Modifier and Type | Method and Description |
|---|---|
JDFNumList |
abs()
modify numlist to absolute values
|
void |
add(int x)
add - add an int to the vector
|
void |
add(JDFIntegerList il)
Deprecated.
- usa addAll
|
void |
add(java.lang.String s)
add - adds a integer list string to the existing integer list
|
void |
addIntegerList(JDFIntegerList il)
Deprecated.
- use addAll()
|
JDFIntegerList |
addX(int x)
add - add an int to the vector
|
boolean |
contains(int d)
return true if at least one value in the list is d
|
static JDFIntegerList |
createIntegerList(java.lang.String s)
convert a string to an integerlist, and return null if the string is no good
|
boolean |
equals(java.lang.Object other)
equals - returns true if both JDFIntegerList are equal otherwise false
|
int |
getInt(int pos)
getInt - returns the integer at 'pos' from the list.
Note: if pos is negative, getInt returns the pos'th integer counting from the end. |
int[] |
getIntArray()
getIntArray - returns this integer list as an int array
|
static JDFIntegerList |
getIntegerList(java.lang.String s)
Deprecated.
use createIntegerList
|
int |
hashCode()
hashCode complements equals() to fulfill the equals/hashCode contract
|
boolean |
isValid()
isValid - true if all instances are Integer types
|
boolean |
isValidString(java.lang.String st)
isValidString - true if all instances are Double or Integer types
|
JDFIntegerList |
scale(double factor)
must keep this because otherwise the object vector gets corrupted with Double objects
|
void |
setInt(int i)
setIntArray - sets this integer list to an int
the RangeList is emptied, then the single value i is added |
void |
setInt(int pos,
int val)
setInt - sets the integer val at 'pos' from the list.
Note: if pos is negative, setInt sets the pos'th integer counting from the end. |
void |
setIntArray(int[] iArray)
setIntArray - sets this integer list to an int array
the RangeList is emptied, then the values of iArray are added |
JDFIntegerList |
setIntX(int i)
setIntArray - sets this integer list to an int
the RangeList is emptied, then the single value i is added |
JDFIntegerList |
setIntX(int pos,
int val) |
JDFIntegerList |
shift(int shift)
must keep this because otherwise the object vector gets corrupted with Double objects
|
void |
sort() |
JDFIntegerList |
subtract(JDFNumList l)
subtract l from this,
|
clone, contains, containsAll, copyNumList, doubleAt, elementAt, getDouble, getDoubleList, getDoubleVector, getString, getString, intAt, matches, max, min, norm, removeElementAt, replaceElementAt, scale, scaleFromCM, scaleFromCM, scaleFromMM, scaleFromMM, scaleToCM, scaleToCM, scaleToMM, scaleToMM, set, setString, setX, shift, toString, unify, volumeadd, add, addAll, addAll, addElement, capacity, clear, contains, containsAll, copyInto, elements, ensureCapacity, firstElement, forEach, get, indexOf, indexOf, insertElementAt, isEmpty, iterator, lastElement, lastIndexOf, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeAllElements, removeElement, removeIf, removeRange, replaceAll, retainAll, set, setElementAt, setSize, size, sort, spliterator, subList, toArray, toArray, trimToSizepublic JDFIntegerList()
public JDFIntegerList(java.lang.String s)
throws java.util.zip.DataFormatException
s - the given Stringjava.util.zip.DataFormatException - - if the String has not a valid formatpublic JDFIntegerList(JDFIntegerList il) throws java.util.zip.DataFormatException
il - the given integer listjava.util.zip.DataFormatException - - if the JDFIntegerList has not a valid formatpublic JDFIntegerList(int[] iArray)
iArray - - the given integer arraypublic JDFIntegerList(int i)
i - the given integerpublic boolean isValidString(java.lang.String st)
JDFNumListisValidString in class JDFNumListst - JDFNumList.isValidString(java.lang.String)@Deprecated public static JDFIntegerList getIntegerList(java.lang.String s)
s - the string to parsepublic static JDFIntegerList createIntegerList(java.lang.String s)
s - the string to parsepublic boolean isValid()
throws java.util.zip.DataFormatException
isValid in class JDFNumListjava.util.zip.DataFormatException - - if the Vector has not a valid formatpublic boolean contains(int d)
d - the value to searchpublic boolean equals(java.lang.Object other)
equals in interface java.util.Collection<java.lang.Object>equals in interface java.util.List<java.lang.Object>equals in class JDFNumListpublic int hashCode()
hashCode in interface java.util.Collection<java.lang.Object>hashCode in interface java.util.List<java.lang.Object>hashCode in class JDFNumList@Deprecated public void addIntegerList(JDFIntegerList il)
il - the given integer listpublic void add(int x)
x - the int valuepublic JDFIntegerList addX(int x)
x - the int value@Deprecated public void add(JDFIntegerList il)
il - the given integer listpublic void add(java.lang.String s)
throws java.util.zip.DataFormatException
s - the given stringjava.util.zip.DataFormatException - - if the String has not a valid formatpublic int getInt(int pos)
pos - index of the integer to getpublic JDFIntegerList setIntX(int pos, int val)
public void setInt(int pos,
int val)
pos - index of the integer to getval - the value to setpublic void sort()
sort in class JDFNumListpublic JDFIntegerList scale(double factor)
scale in class JDFNumListJDFNumList.scale(double)public JDFIntegerList shift(int shift)
JDFNumList.scale(double)public int[] getIntArray()
getIntArray in class JDFNumListpublic void setIntArray(int[] iArray)
iArray - the int arraypublic void setInt(int i)
i - the valuepublic JDFIntegerList setIntX(int i)
i - the valuepublic JDFNumList abs()
JDFNumListabs in class JDFNumListJDFNumList.abs()public JDFIntegerList subtract(JDFNumList l)
subtract in class JDFNumListl - the list to subtract from thisjava.lang.IllegalArgumentException - if sizes don't match