public interface StateSet<SI extends StateIndex<? super S>,S> extends Set<S>, Iterable<S>, JsonConvertible
index for mapping
indices to actual objects.| Modifier and Type | Method and Description |
|---|---|
StateSet<SI,S> |
copy() |
static <SI extends StateIndex<? super S>,S> |
create(SI stateIndex) |
static <SI extends StateIndex<? super S>,S> |
create(SI stateIndex,
Collection<S> initial) |
static <SI extends StateIndex<? super S>,S> |
create(SI stateIndex,
S initial) |
default String |
defaultToString() |
SI |
getStateIndex() |
int |
hashCode()
Returns the hash code value for this set.
|
boolean |
isDisjoint(StateSet<SI,? extends S> other) |
default Stream<S> |
stream() |
default Object[] |
toArray() |
default <T> T[] |
toArray(T[] a) |
default int[] |
toArrayOfIndices() |
default JsonValue |
toJson() |
add, addAll, clear, contains, containsAll, copyOf, equals, isEmpty, iterator, of, of, of, of, of, of, of, of, of, of, of, of, remove, removeAll, retainAll, size, spliteratorparallelStream, removeIf, toArraystatic <SI extends StateIndex<? super S>,S> StateSet<SI,S> create(SI stateIndex)
static <SI extends StateIndex<? super S>,S> StateSet<SI,S> create(SI stateIndex, S initial)
static <SI extends StateIndex<? super S>,S> StateSet<SI,S> create(SI stateIndex, Collection<S> initial)
SI getStateIndex()
int hashCode()
Sets, the hash code value returned by this implementation is
not the sum of the hash codes of its elements.hashCode in interface Collection<E>hashCode in interface Set<S>hashCode in class ObjectSet.hashCode()default int[] toArrayOfIndices()
default Object[] toArray()
default <T> T[] toArray(T[] a)
default Stream<S> stream()
stream in interface Collection<E>default String defaultToString()
default JsonValue toJson()
toJson in interface JsonConvertible