Class AbstractTuple
- java.lang.Object
-
- ai.timefold.solver.constraint.streams.bavet.common.tuple.AbstractTuple
-
public abstract class AbstractTuple extends Object
A tuple is an out tuple in exactly one node and an in tuple in one or more nodes.A tuple must not implement equals()/hashCode() to fact equality, because some stream operations (
UniConstraintStream.map(Function), ...) might create 2 different tuple instances to contain the same facts and because a tuple's origin may replace a tuple's fact.A tuple is modifiable. However, only the origin node of a tuple (the node where the tuple is the out tuple) may modify it.
-
-
Field Summary
Fields Modifier and Type Field Description TupleStatestate
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractTuple(int storeSize)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <Value_> Value_getStore(int index)<Value_> Value_removeStore(int index)voidsetStore(int index, Object value)
-
-
-
Field Detail
-
state
public TupleState state
-
-
Method Detail
-
getStore
public final <Value_> Value_ getStore(int index)
-
setStore
public final void setStore(int index, Object value)
-
removeStore
public <Value_> Value_ removeStore(int index)
-
-