Package gov.nasa.pds.tools.label
Class Sequence
- java.lang.Object
-
- gov.nasa.pds.tools.label.Sequence
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(int index, Value object)booleanadd(Value object)booleanaddAll(int index, Collection<? extends Value> vals)booleanaddAll(Collection<? extends Value> vals)voidclear()booleancontains(Object object)booleancontainsAll(Collection<?> vals)booleanequals(Object object)Valueget(int index)ValuegetValue(int index)inthashcode()intindexOf(Object object)booleanisEmpty()Iterator<Value>iterator()intlastIndexOf(Object object)ListIterator<Value>listIterator()ListIterator<Value>listIterator(int index)Stringnormalize()Valueremove(int index)booleanremove(Object object)booleanremoveAll(Collection<?> vals)ScalarremoveScalar(int index)booleanretainAll(Collection<?> vals)Valueset(int index, Value value)intsize()List<Value>subList(int fromIndex, int toIndex)Object[]toArray()<T> T[]toArray(T[] objects)StringtoString()StringtoString(boolean retainQuotes)Provides a string representation of the Sequence with single or double quotes surrounding each value if the retainQuotes flag is set to true and the ValueType was SINGLE_QUOTED or DOUBLE_QUOTED for a value.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
-
Methods inherited from interface java.util.List
hashCode, replaceAll, sort, spliterator
-
-
-
-
Method Detail
-
containsAll
public boolean containsAll(Collection<?> vals)
- Specified by:
containsAllin interfaceCollection<Value>- Specified by:
containsAllin interfaceList<Value>
-
addAll
public boolean addAll(Collection<? extends Value> vals)
-
addAll
public boolean addAll(int index, Collection<? extends Value> vals)
-
removeAll
public boolean removeAll(Collection<?> vals)
-
retainAll
public boolean retainAll(Collection<?> vals)
-
clear
public void clear()
-
getValue
public Value getValue(int index)
-
removeScalar
public Scalar removeScalar(int index)
-
listIterator
public ListIterator<Value> listIterator()
- Specified by:
listIteratorin interfaceList<Value>
-
listIterator
public ListIterator<Value> listIterator(int index)
- Specified by:
listIteratorin interfaceList<Value>
-
contains
public boolean contains(Object object)
-
toArray
public <T> T[] toArray(T[] objects)
-
add
public boolean add(Value object)
-
remove
public boolean remove(Object object)
-
lastIndexOf
public int lastIndexOf(Object object)
- Specified by:
lastIndexOfin interfaceList<Value>
-
toArray
public Object[] toArray()
-
size
public int size()
-
isEmpty
public boolean isEmpty()
-
toString
public String toString(boolean retainQuotes)
Provides a string representation of the Sequence with single or double quotes surrounding each value if the retainQuotes flag is set to true and the ValueType was SINGLE_QUOTED or DOUBLE_QUOTED for a value.- Parameters:
retainQuotes- Set to true to return the value with quotes surrounding it if it was originally there in the label.- Returns:
- The string representation of the Sequence.
-
equals
public boolean equals(Object object)
-
hashcode
public int hashcode()
-
-