Class ImmutableIsAnsweredOperator
java.lang.Object
io.dialob.session.engine.program.expr.arith.ImmutableIsAnsweredOperator
- All Implemented Interfaces:
IsAnsweredOperator,Expression,Serializable
@Generated(from="IsAnsweredOperator",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
@CheckReturnValue
public final class ImmutableIsAnsweredOperator
extends Object
implements IsAnsweredOperator
Immutable implementation of
IsAnsweredOperator.
Use the builder to create immutable instances:
ImmutableIsAnsweredOperator.builder().
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeImmutableIsAnsweredOperator. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forImmutableIsAnsweredOperator.static ImmutableIsAnsweredOperatorcopyOf(IsAnsweredOperator instance) Creates an immutable copy of aIsAnsweredOperatorvalue.booleanThis instance is equal to all instances ofImmutableIsAnsweredOperatorthat have equal attribute values.inthashCode()Computes a hash code from attributes:questionId.toString()Prints the immutable valueIsAnsweredOperatorwith attribute values.withQuestionId(ItemId value) Copy the current immutable object by setting a value for thequestionIdattribute.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface io.dialob.session.engine.program.expr.arith.IsAnsweredOperator
eval, getEvalRequiredConditions, getValueType
-
Method Details
-
getQuestionId
- Specified by:
getQuestionIdin interfaceIsAnsweredOperator- Returns:
- The value of the
questionIdattribute
-
withQuestionId
Copy the current immutable object by setting a value for thequestionIdattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for questionId- Returns:
- A modified copy or the
thisobject
-
equals
This instance is equal to all instances ofImmutableIsAnsweredOperatorthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:questionId. -
toString
Prints the immutable valueIsAnsweredOperatorwith attribute values. -
copyOf
Creates an immutable copy of aIsAnsweredOperatorvalue. Uses accessors to get values to initialize the new immutable instance. If an instance is already immutable, it is returned as is.- Parameters:
instance- The instance to copy- Returns:
- A copied immutable IsAnsweredOperator instance
-
builder
Creates a builder forImmutableIsAnsweredOperator.ImmutableIsAnsweredOperator.builder() .questionId(io.dialob.session.engine.session.model.ItemId) // requiredquestionId.build();- Returns:
- A new ImmutableIsAnsweredOperator builder
-