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 void
add(int index, Value object)
boolean
add(Value object)
boolean
addAll(int index, Collection<? extends Value> vals)
boolean
addAll(Collection<? extends Value> vals)
void
clear()
boolean
contains(Object object)
boolean
containsAll(Collection<?> vals)
boolean
equals(Object object)
Value
get(int index)
Value
getValue(int index)
int
hashcode()
int
indexOf(Object object)
boolean
isEmpty()
Iterator<Value>
iterator()
int
lastIndexOf(Object object)
ListIterator<Value>
listIterator()
ListIterator<Value>
listIterator(int index)
String
normalize()
Value
remove(int index)
boolean
remove(Object object)
boolean
removeAll(Collection<?> vals)
Scalar
removeScalar(int index)
boolean
retainAll(Collection<?> vals)
Value
set(int index, Value value)
int
size()
List<Value>
subList(int fromIndex, int toIndex)
Object[]
toArray()
<T> T[]
toArray(T[] objects)
String
toString()
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.-
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:
containsAll
in interfaceCollection<Value>
- Specified by:
containsAll
in 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:
listIterator
in interfaceList<Value>
-
listIterator
public ListIterator<Value> listIterator(int index)
- Specified by:
listIterator
in 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:
lastIndexOf
in 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()
-
-