Gets the {@link com.bayesserver.Variable} this collection belongs to. This is null if this is a child state collection.
The variable that owns this collection.
Finds the state whose {@link com.bayesserver.State#getValue value}/> matches the given [value], or null if a match is not found.
For discretized variables, each {@link com.bayesserver.State#getValue} is an {@link com.bayesserver.Interval}, and this method returns the state whose interval contains the given [value].
The value to match to a {@link com.bayesserver.State#getValue}.
The matching {@link com.bayesserver.State} or null if a match is not found.
Performs a case sensitive lookup.
The name of the {@link com.bayesserver.State} to find.
A {@link com.bayesserver.State} with the specified name if found; otherwise null.
Performs a case sensitive lookup.
The name of the {@link com.bayesserver.State} to find.
When true
throws an exception if the name is not found.
The {@link com.bayesserver.State} with the specified name; otherwise null.
Gets the {@link com.bayesserver.State} at the specified index.
The state.
Determines whether a {@link com.bayesserver.State} is in the collection. The operation is O(1).
The {@link com.bayesserver.State} to locate in the collection. The value can be null.
true if [item] is found in the collection; otherwise, false.
Determines the index of a specific {@link com.bayesserver.State} in the collection. This operation is O(1).
The state to find. The value can be null.
The index of the state in the collection, or -1 if not found.
Inserts an element into the collection at the specified index.
The zero based index at which to add the element.
The item to insert. Cannot be null.
Removes an element from the collection at the specified index.
The zero based index at which to remove the element.
Sets the {@link com.bayesserver.State} at the specified index.
The state.
Represents a collection of states belonging to a {@link com.bayesserver.Variable}.
Note that a continuous variable always has a single state.
com.bayesserver.State