Package io.dialob.program.expr.arith
Class ImmutableIsActiveOperator
- java.lang.Object
-
- io.dialob.program.expr.arith.ImmutableIsActiveOperator
-
- All Implemented Interfaces:
IsActiveOperator,Expression,Serializable
@ParametersAreNonnullByDefault @Generated("org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableIsActiveOperator extends Object implements IsActiveOperator
Immutable implementation ofIsActiveOperator.Use the builder to create immutable instances:
ImmutableIsActiveOperator.builder(). Use the static factory method to create immutable instances:ImmutableIsActiveOperator.of().- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classImmutableIsActiveOperator.BuilderBuilds instances of typeImmutableIsActiveOperator.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ImmutableIsActiveOperator.Builderbuilder()Creates a builder forImmutableIsActiveOperator.static ImmutableIsActiveOperatorcopyOf(IsActiveOperator instance)Creates an immutable copy of aIsActiveOperatorvalue.booleanequals(Object another)This instance is equal to all instances ofImmutableIsActiveOperatorthat have equal attribute values.ItemIdgetItemId()inthashCode()Computes a hash code from attributes:itemId.static ImmutableIsActiveOperatorof(ItemId itemId)Construct a new immutableIsActiveOperatorinstance.StringtoString()Prints the immutable valueIsActiveOperatorwith attribute values.ImmutableIsActiveOperatorwithItemId(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.IsActiveOperator
eval, getEvalRequiredConditions, getValueType
-
-
-
-
Method Detail
-
getItemId
public ItemId getItemId()
- Specified by:
getItemIdin interfaceIsActiveOperator- Returns:
- The value of the
itemIdattribute
-
withItemId
public final ImmutableIsActiveOperator 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 ofImmutableIsActiveOperatorthat have equal attribute values.
-
hashCode
public int hashCode()
Computes a hash code from attributes:itemId.
-
toString
public String toString()
Prints the immutable valueIsActiveOperatorwith attribute values.
-
of
public static ImmutableIsActiveOperator of(ItemId itemId)
Construct a new immutableIsActiveOperatorinstance.- Parameters:
itemId- The value for theitemIdattribute- Returns:
- An immutable IsActiveOperator instance
-
copyOf
public static ImmutableIsActiveOperator copyOf(IsActiveOperator instance)
Creates an immutable copy of aIsActiveOperatorvalue. 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 IsActiveOperator instance
-
builder
public static ImmutableIsActiveOperator.Builder builder()
Creates a builder forImmutableIsActiveOperator.ImmutableIsActiveOperator.builder() .itemId(io.dialob.executor.model.ItemId) // requireditemId.build();- Returns:
- A new ImmutableIsActiveOperator builder
-
-