Package io.dialob.program.expr.arith
Class ImmutableIsAnsweredOperator
- java.lang.Object
-
- io.dialob.program.expr.arith.ImmutableIsAnsweredOperator
-
- All Implemented Interfaces:
IsAnsweredOperator,Expression,Serializable
@ParametersAreNonnullByDefault @Generated("org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableIsAnsweredOperator extends Object implements IsAnsweredOperator
Immutable implementation ofIsAnsweredOperator.Use the builder to create immutable instances:
ImmutableIsAnsweredOperator.builder().- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classImmutableIsAnsweredOperator.BuilderBuilds instances of typeImmutableIsAnsweredOperator.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ImmutableIsAnsweredOperator.Builderbuilder()Creates a builder forImmutableIsAnsweredOperator.static ImmutableIsAnsweredOperatorcopyOf(IsAnsweredOperator instance)Creates an immutable copy of aIsAnsweredOperatorvalue.booleanequals(Object another)This instance is equal to all instances ofImmutableIsAnsweredOperatorthat have equal attribute values.ItemIdgetQuestionId()inthashCode()Computes a hash code from attributes:questionId.StringtoString()Prints the immutable valueIsAnsweredOperatorwith attribute values.ImmutableIsAnsweredOperatorwithQuestionId(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, wait
-
Methods inherited from interface io.dialob.program.expr.arith.IsAnsweredOperator
eval, getEvalRequiredConditions, getValueType
-
-
-
-
Method Detail
-
getQuestionId
public ItemId getQuestionId()
- Specified by:
getQuestionIdin interfaceIsAnsweredOperator- Returns:
- The value of the
questionIdattribute
-
withQuestionId
public final ImmutableIsAnsweredOperator withQuestionId(ItemId value)
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 of the
thisobject
-
equals
public boolean equals(@Nullable Object another)This instance is equal to all instances ofImmutableIsAnsweredOperatorthat have equal attribute values.
-
hashCode
public int hashCode()
Computes a hash code from attributes:questionId.
-
toString
public String toString()
Prints the immutable valueIsAnsweredOperatorwith attribute values.
-
copyOf
public static ImmutableIsAnsweredOperator copyOf(IsAnsweredOperator instance)
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
public static ImmutableIsAnsweredOperator.Builder builder()
Creates a builder forImmutableIsAnsweredOperator.ImmutableIsAnsweredOperator.builder() .questionId(io.dialob.executor.model.ItemId) // requiredquestionId.build();- Returns:
- A new ImmutableIsAnsweredOperator builder
-
-