public static final class ImmutableOperatorMapping.Builder extends Object
ImmutableOperatorMapping.
Initialize attributes and then invoke the build() method to create an
immutable instance.
Builder is not thread-safe and generally should not be stored in a field or collection,
but instead used immediately to create instances.
| Modifier and Type | Method and Description |
|---|---|
ImmutableOperatorMapping |
build()
Builds a new
ImmutableOperatorMapping. |
ImmutableOperatorMapping.Builder |
evaluatable(String evaluatable)
Initializes the value for the
evaluatable attribute. |
ImmutableOperatorMapping.Builder |
from(OperatorMapping instance)
Fill a builder with attribute values from the provided
OperatorMapping instance. |
ImmutableOperatorMapping.Builder |
isLeftAssociative(boolean isLeftAssociative)
Initializes the value for the
isLeftAssociative attribute. |
ImmutableOperatorMapping.Builder |
precedence(int precedence)
Initializes the value for the
precedence attribute. |
public final ImmutableOperatorMapping.Builder from(OperatorMapping instance)
OperatorMapping instance.
Regular attribute values will be replaced with those from the given instance.
Absent optional values will not replace present values.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final ImmutableOperatorMapping.Builder precedence(int precedence)
precedence attribute.precedence - The value for precedencethis builder for use in a chained invocationpublic final ImmutableOperatorMapping.Builder isLeftAssociative(boolean isLeftAssociative)
isLeftAssociative attribute.isLeftAssociative - The value for isLeftAssociativethis builder for use in a chained invocationpublic final ImmutableOperatorMapping.Builder evaluatable(String evaluatable)
evaluatable attribute.evaluatable - The value for evaluatablethis builder for use in a chained invocationpublic ImmutableOperatorMapping build()
ImmutableOperatorMapping.IllegalStateException - if any required attributes are missingCopyright © 2024. All rights reserved.