public final class VariableContextCollection extends AbstractList<VariableContext>
modCount| Modifier and Type | Method and Description |
|---|---|
boolean |
contains(Variable variable)
Determines whether a
Variable is in the collection. |
boolean |
contains(VariableContext variableContext,
boolean ignoreHeadTail)
Determines whether a variable-time (and optionally Head/Tail) combination is contained in the collection.
|
boolean |
contains(Variable variable,
Integer time)
Determines whether a
Variable is in the collection at the specified [time]. |
boolean |
containsAll(List<Variable> items)
Determines whether all [items] are matched in the collection.
|
boolean |
containsAll(List<Variable> items,
List<Integer> times)
Determines whether all [items] are matched in the collection.
|
boolean |
containsAll(List<VariableContext> items,
boolean ignoreHeadTail)
Determines whether all [items] are matched in the collection at the specified times.
|
boolean |
containsAll(VariableContextCollection items,
boolean ignoreHeadTail)
Determines whether all [items] are matched in the collection.
|
boolean |
containsAny(List<Variable> items,
List<Integer> times)
Determines whether any [items] are matched in the collection.
|
boolean |
containsAny(VariableContextCollection items,
boolean ignoreHeadTail)
Determines whether any [items] are matched in the collection.
|
VariableContext |
get(int index)
Gets the
Variable object at the specified index. |
int |
indexOf(Variable item)
Determines the index of a specific
Variable in the collection. |
int |
indexOf(VariableContext variableContext,
boolean ignoreHeadTail)
Determines the index of a specific variable-time combination in the collection.
|
int |
indexOf(Variable variable,
Integer time)
Determines the index of a specific
Variable in the collection at the specified [time]. |
VariableContext |
set(int index,
VariableContext value)
Gets the
Variable object at the specified index. |
int |
size()
Gets the number of elements contained in the collection.
|
String |
toString()
|
add, add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, subListaddAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArrayclone, finalize, getClass, notify, notifyAll, wait, wait, waitaddAll, contains, containsAll, isEmpty, remove, removeAll, replaceAll, retainAll, sort, spliterator, toArray, toArrayparallelStream, removeIf, streampublic String toString()
toString in class AbstractCollection<VariableContext>String that represents the current Object.public int size()
size in interface Collection<VariableContext>size in interface List<VariableContext>size in class AbstractCollection<VariableContext>public int indexOf(Variable item)
Variable in the collection.item - The variable to find. The value can be null.public int indexOf(VariableContext variableContext, boolean ignoreHeadTail)
variableContext - The variable context to match.ignoreHeadTail - When true, the Head and Tail specifications need not match.public int indexOf(Variable variable, Integer time)
Variable in the collection at the specified [time].variable - The variable to find.time - The variable time. Can be null for non temporal variables.public boolean contains(Variable variable)
Variable is in the collection.variable - The Variable to locate in the collection. The value can be null.public boolean contains(VariableContext variableContext, boolean ignoreHeadTail)
variableContext - The variableContext to match.ignoreHeadTail - When true, the Head and Tail specifications need not match.public boolean contains(Variable variable, Integer time)
Variable is in the collection at the specified [time].variable - The Variable to locate in the collection. The value can be null.time - The time associated with the variable, if any. Can be null.public boolean containsAll(List<Variable> items)
items - The items to locate in the collection. Cannot be null.NullPointerException - Raised when [items] is null.public boolean containsAll(List<Variable> items, List<Integer> times)
items - The items to locate in the collection. Cannot be null.times - The times associated with [items]. Can be null.NullPointerException - Raised when [items] is null.public boolean containsAll(List<VariableContext> items, boolean ignoreHeadTail)
items - The items to locate in the collection. Cannot be null.ignoreHeadTail - When true, head and tail specifications need not match.NullPointerException - Raised when [items] is null.public boolean containsAll(VariableContextCollection items, boolean ignoreHeadTail)
items - The items to locate in the collection. Cannot be null.ignoreHeadTail - When true, the Head and Tail specifications need not match.NullPointerException - Raised when [items] is null.public boolean containsAny(VariableContextCollection items, boolean ignoreHeadTail)
items - The items to locate in the collection. Cannot be null.ignoreHeadTail - When true, the Head and Tail specifications need not match.NullPointerException - Raised when [items] is null.public boolean containsAny(List<Variable> items, List<Integer> times)
items - The items to locate in the collection. Cannot be null.times - The time for each variable. Each time can be null for non temporal variables. [times] can be null.NullPointerException - Raised when [items] is null.public VariableContext get(int index)
Variable object at the specified index.get in interface List<VariableContext>get in class AbstractList<VariableContext>index - The zero-based index of the Variable to find.Variable.public VariableContext set(int index, VariableContext value)
Variable object at the specified index.set in interface List<VariableContext>set in class AbstractList<VariableContext>index - The zero-based index of the Variable to find.Variable.Copyright © 2021. All rights reserved.