public class JDFNumberList 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 |
|---|
JDFNumberList() |
JDFNumberList(double[] array) |
JDFNumberList(JDFNumList nl) |
JDFNumberList(java.lang.String s)
constructs a number list with the given string
|
JDFNumberList(java.util.Vector v)
Deprecated.
use typesafe constructors
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(double x)
add - add a double value to the vector
|
void |
add(java.lang.String s)
add - adds a number list to the already existing number list
|
boolean |
contains(double d)
return true if at least one value in the list is d
|
static JDFNumberList |
createNumberList(java.lang.String s)
factory for JDFNumberList that silently returns null in case of illegal strings
|
boolean |
isValid()
isValid - true if all instances are Double types
|
abs, clone, contains, containsAll, copyNumList, doubleAt, elementAt, equals, getDouble, getDoubleList, getDoubleVector, getIntArray, getString, getString, hashCode, intAt, isValidString, matches, max, min, norm, removeElementAt, replaceElementAt, scale, scale, scaleFromCM, scaleFromCM, scaleFromMM, scaleFromMM, scaleToCM, scaleToCM, scaleToMM, scaleToMM, set, setString, setX, shift, sort, subtract, 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 JDFNumberList(double[] array)
public JDFNumberList(JDFNumList nl) throws java.util.zip.DataFormatException
java.util.zip.DataFormatExceptionpublic JDFNumberList()
public JDFNumberList(java.lang.String s)
throws java.util.zip.DataFormatException
s - the given Stringjava.util.zip.DataFormatException - - if the String has not a valid format@Deprecated
public JDFNumberList(java.util.Vector v)
throws java.util.zip.DataFormatException
v - the given vectorjava.util.zip.DataFormatException - - if the Vector has not a valid formatpublic static JDFNumberList createNumberList(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 void add(double x)
x - the double valuepublic 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 boolean contains(double d)
d - the value to search