Package io.dialob.program.expr.arith
Class ImmutableIsValidOperator
- java.lang.Object
-
- io.dialob.program.expr.arith.ImmutableIsValidOperator
-
- All Implemented Interfaces:
IsValidOperator,Expression,Serializable
@ParametersAreNonnullByDefault @Generated("org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableIsValidOperator extends Object implements IsValidOperator
Immutable implementation ofIsValidOperator.Use the builder to create immutable instances:
ImmutableIsValidOperator.builder(). Use the static factory method to create immutable instances:ImmutableIsValidOperator.of().- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classImmutableIsValidOperator.BuilderBuilds instances of typeImmutableIsValidOperator.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ImmutableIsValidOperator.Builderbuilder()Creates a builder forImmutableIsValidOperator.static ImmutableIsValidOperatorcopyOf(IsValidOperator instance)Creates an immutable copy of aIsValidOperatorvalue.booleanequals(Object another)This instance is equal to all instances ofImmutableIsValidOperatorthat have equal attribute values.ItemIdgetItemId()inthashCode()Computes a hash code from attributes:itemId.static ImmutableIsValidOperatorof(ItemId itemId)Construct a new immutableIsValidOperatorinstance.StringtoString()Prints the immutable valueIsValidOperatorwith attribute values.ImmutableIsValidOperatorwithItemId(ItemId value)Copy the current immutable object by setting a value for theitemIdattribute.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface io.dialob.program.expr.arith.IsValidOperator
eval, getEvalRequiredConditions, getValueType
-
-
-
-
Method Detail
-
getItemId
public ItemId getItemId()
- Specified by:
getItemIdin interfaceIsValidOperator- Returns:
- The value of the
itemIdattribute
-
withItemId
public final ImmutableIsValidOperator withItemId(ItemId value)
Copy the current immutable object by setting a value for theitemIdattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for itemId- Returns:
- A modified copy of the
thisobject
-
equals
public boolean equals(@Nullable Object another)This instance is equal to all instances ofImmutableIsValidOperatorthat have equal attribute values.
-
hashCode
public int hashCode()
Computes a hash code from attributes:itemId.
-
toString
public String toString()
Prints the immutable valueIsValidOperatorwith attribute values.
-
of
public static ImmutableIsValidOperator of(ItemId itemId)
Construct a new immutableIsValidOperatorinstance.- Parameters:
itemId- The value for theitemIdattribute- Returns:
- An immutable IsValidOperator instance
-
copyOf
public static ImmutableIsValidOperator copyOf(IsValidOperator instance)
Creates an immutable copy of aIsValidOperatorvalue. 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 IsValidOperator instance
-
builder
public static ImmutableIsValidOperator.Builder builder()
Creates a builder forImmutableIsValidOperator.ImmutableIsValidOperator.builder() .itemId(io.dialob.executor.model.ItemId) // requireditemId.build();- Returns:
- A new ImmutableIsValidOperator builder
-
-