Package io.dialob.program.expr
Class ImmutableNotOnPageExpression
- java.lang.Object
-
- io.dialob.program.expr.ImmutableNotOnPageExpression
-
- All Implemented Interfaces:
NotOnPageExpression,Expression,Serializable
@ParametersAreNonnullByDefault @Generated("org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableNotOnPageExpression extends Object implements NotOnPageExpression
Immutable implementation ofNotOnPageExpression.Use the builder to create immutable instances:
ImmutableNotOnPageExpression.builder(). Use the static factory method to create immutable instances:ImmutableNotOnPageExpression.of().- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classImmutableNotOnPageExpression.BuilderBuilds instances of typeImmutableNotOnPageExpression.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ImmutableNotOnPageExpression.Builderbuilder()Creates a builder forImmutableNotOnPageExpression.static ImmutableNotOnPageExpressioncopyOf(NotOnPageExpression instance)Creates an immutable copy of aNotOnPageExpressionvalue.booleanequals(Object another)This instance is equal to all instances ofImmutableNotOnPageExpressionthat have equal attribute values.ItemIdgetPage()inthashCode()Computes a hash code from attributes:page.static ImmutableNotOnPageExpressionof(ItemId page)Construct a new immutableNotOnPageExpressioninstance.StringtoString()Prints the immutable valueNotOnPageExpressionwith attribute values.ImmutableNotOnPageExpressionwithPage(ItemId value)Copy the current immutable object by setting a value for thepageattribute.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface io.dialob.program.expr.NotOnPageExpression
eval, getEvalRequiredConditions, getValueType
-
-
-
-
Method Detail
-
getPage
public ItemId getPage()
- Specified by:
getPagein interfaceNotOnPageExpression- Returns:
- The value of the
pageattribute
-
withPage
public final ImmutableNotOnPageExpression withPage(ItemId value)
Copy the current immutable object by setting a value for thepageattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for page- Returns:
- A modified copy of the
thisobject
-
equals
public boolean equals(@Nullable Object another)This instance is equal to all instances ofImmutableNotOnPageExpressionthat have equal attribute values.
-
hashCode
public int hashCode()
Computes a hash code from attributes:page.
-
toString
public String toString()
Prints the immutable valueNotOnPageExpressionwith attribute values.
-
of
public static ImmutableNotOnPageExpression of(ItemId page)
Construct a new immutableNotOnPageExpressioninstance.- Parameters:
page- The value for thepageattribute- Returns:
- An immutable NotOnPageExpression instance
-
copyOf
public static ImmutableNotOnPageExpression copyOf(NotOnPageExpression instance)
Creates an immutable copy of aNotOnPageExpressionvalue. 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 NotOnPageExpression instance
-
builder
public static ImmutableNotOnPageExpression.Builder builder()
Creates a builder forImmutableNotOnPageExpression.ImmutableNotOnPageExpression.builder() .page(io.dialob.executor.model.ItemId) // requiredpage.build();- Returns:
- A new ImmutableNotOnPageExpression builder
-
-