public class JDFNumberList extends JDFNumList
JDFNumList.NormComparator, JDFNumList.VolumeComparator
JDFBaseDataTypes.EnumFitsValue
capacityIncrement, elementCount, elementData
modCount
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 |
---|
JDFNumberList() |
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, scale, scaleFromCM, scaleFromCM, scaleFromMM, scaleFromMM, scaleToCM, scaleToCM, scaleToMM, scaleToMM, set, setString, sort, subtract, toString, unify, volume
add, 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, trimToSize
finalize, getClass, notify, notifyAll, wait, wait, wait
parallelStream, stream
public JDFNumberList()
public 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 JDFNumList
DataFormatException
- - 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 © 2018. All rights reserved.