public class JDFNumberList extends JDFNumList
JDFNumList.NormComparator, JDFNumList.VolumeComparatorJDFBaseDataTypes.EnumFitsValuecapacityIncrement, elementCount, elementDatamodCountEPSILON, 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(String s)
constructs a number list with the given string
|
JDFNumberList(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(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(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, getDoubleList, getIntArray, getString, getString, hashCode, isValidString, matches, norm, removeElementAt, replaceElementAt, scale, scaleFromCM, scaleFromMM, scaleToCM, scaleToMM, set, setString, subtract, toString, unify, volumeadd, add, addAll, addAll, addElement, capacity, clear, contains, containsAll, copyInto, elements, ensureCapacity, firstElement, get, indexOf, indexOf, insertElementAt, isEmpty, iterator, lastElement, lastIndexOf, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeAllElements, removeElement, removeRange, retainAll, set, setElementAt, setSize, size, subList, toArray, toArray, trimToSizepublic JDFNumberList(String s) throws DataFormatException
s - the given StringDataFormatException - - if the String has not a valid format@Deprecated public JDFNumberList(Vector v) throws DataFormatException
v - the given vectorDataFormatException - - if the Vector has not a valid formatpublic static JDFNumberList createNumberList(String s)
s - the string to parsepublic boolean isValid()
throws DataFormatException
isValid in class JDFNumListDataFormatException - - if the Vector has not a valid formatpublic void add(double x)
x - the double valuepublic void add(String s) throws DataFormatException
s - the given stringDataFormatException - - if the String has not a valid formatpublic boolean contains(double d)
d - the value to searchCopyright © 2015. All rights reserved.