Class ImmutableStringTemplateOperator
java.lang.Object
io.dialob.session.engine.program.expr.arith.ImmutableStringTemplateOperator
- All Implemented Interfaces:
StringTemplateOperator,Expression,Serializable
@Generated(from="StringTemplateOperator",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
@CheckReturnValue
public final class ImmutableStringTemplateOperator
extends Object
implements StringTemplateOperator
Immutable implementation of
StringTemplateOperator.
Use the builder to create immutable instances:
ImmutableStringTemplateOperator.builder().
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeImmutableStringTemplateOperator. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forImmutableStringTemplateOperator.copyOf(StringTemplateOperator instance) Creates an immutable copy of aStringTemplateOperatorvalue.booleanThis instance is equal to all instances ofImmutableStringTemplateOperatorthat have equal attribute values.com.google.common.collect.ImmutableSet<EventMatcher> inthashCode()Computes a hash code from attributes:template,evalRequiredConditions.toString()Prints the immutable valueStringTemplateOperatorwith attribute values.withEvalRequiredConditions(EventMatcher... elements) Copy the current immutable object with elements that replace the content ofevalRequiredConditions.withEvalRequiredConditions(Iterable<? extends EventMatcher> elements) Copy the current immutable object with elements that replace the content ofevalRequiredConditions.withTemplate(String value) Copy the current immutable object by setting a value for thetemplateattribute.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.StringTemplateOperator
eval, getValueType
-
Method Details
-
getTemplate
- Specified by:
getTemplatein interfaceStringTemplateOperator- Returns:
- The value of the
templateattribute
-
getEvalRequiredConditions
- Specified by:
getEvalRequiredConditionsin interfaceExpression- Specified by:
getEvalRequiredConditionsin interfaceStringTemplateOperator- Returns:
- The value of the
evalRequiredConditionsattribute
-
withTemplate
Copy the current immutable object by setting a value for thetemplateattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for template- Returns:
- A modified copy or the
thisobject
-
withEvalRequiredConditions
Copy the current immutable object with elements that replace the content ofevalRequiredConditions.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withEvalRequiredConditions
public final ImmutableStringTemplateOperator withEvalRequiredConditions(Iterable<? extends EventMatcher> elements) Copy the current immutable object with elements that replace the content ofevalRequiredConditions. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of evalRequiredConditions elements to set- Returns:
- A modified copy or
thisif not changed
-
equals
This instance is equal to all instances ofImmutableStringTemplateOperatorthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:template,evalRequiredConditions. -
toString
Prints the immutable valueStringTemplateOperatorwith attribute values. -
copyOf
Creates an immutable copy of aStringTemplateOperatorvalue. 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 StringTemplateOperator instance
-
builder
Creates a builder forImmutableStringTemplateOperator.ImmutableStringTemplateOperator.builder() .template(String) // requiredtemplate.addEvalRequiredConditions|addAllEvalRequiredConditions(io.dialob.session.engine.session.command.EventMatcher) //evalRequiredConditionselements .build();- Returns:
- A new ImmutableStringTemplateOperator builder
-