Package com.bayesserver.data.sampling
Class ExcludedVariables
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractList<Variable>
-
- com.bayesserver.data.sampling.ExcludedVariables
-
public final class ExcludedVariables extends AbstractList<Variable>
Set of variables which should be excluded from an operation, such as missing data generation.
-
-
Field Summary
-
Fields inherited from class java.util.AbstractList
modCount
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(int index, Variable element)
void
clear()
boolean
contains(Object item)
Determines whether the specified variable is excluded.Variable
get(int index)
Variable
remove(int index)
Variable
set(int index, Variable item)
int
size()
-
Methods inherited from class java.util.AbstractList
add, addAll, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, removeRange, subList
-
Methods inherited from class java.util.AbstractCollection
addAll, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
-
Methods inherited from interface java.util.List
addAll, containsAll, isEmpty, remove, removeAll, replaceAll, retainAll, sort, spliterator, toArray, toArray
-
-
-
-
Method Detail
-
add
public void add(int index, Variable element)
-
remove
public Variable remove(int index)
-
clear
public void clear()
- Specified by:
clear
in interfaceCollection<Variable>
- Specified by:
clear
in interfaceList<Variable>
- Overrides:
clear
in classAbstractList<Variable>
-
contains
public boolean contains(Object item)
Determines whether the specified variable is excluded.- Specified by:
contains
in interfaceCollection<Variable>
- Specified by:
contains
in interfaceList<Variable>
- Overrides:
contains
in classAbstractCollection<Variable>
- Parameters:
item
- The variable.- Returns:
true
if the specified variable is excluded; otherwise,false
.
-
get
public Variable get(int index)
-
size
public int size()
- Specified by:
size
in interfaceCollection<Variable>
- Specified by:
size
in interfaceList<Variable>
- Specified by:
size
in classAbstractCollection<Variable>
-
-