Class ImmutableEncodedElement.TypeParam.Builder
java.lang.Object
org.immutables.value.processor.encode.ImmutableEncodedElement.TypeParam.Builder
- Direct Known Subclasses:
EncodedElement.TypeParam.Builder
- Enclosing class:
ImmutableEncodedElement.TypeParam
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final com.google.common.collect.ImmutableList.Builder<Type.Defined> private static final longprivate longprivate String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddAllBounds(Iterable<? extends Type.Defined> elements) Adds elements toboundslist.addBounds(Type.Defined element) Adds one element toboundslist.addBounds(Type.Defined... elements) Adds elements toboundslist.build()Builds a newTypeParam.private static voidcheckNotIsSet(boolean isSet, String name) private voidprivate StringInitializes the value for thenameattribute.private boolean
-
Field Details
-
INIT_BIT_NAME
private static final long INIT_BIT_NAME- See Also:
-
initBits
private long initBits -
name
-
bounds
-
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
name
Initializes the value for thenameattribute.- Parameters:
name- The value for name- Returns:
thisbuilder for use in a chained invocation
-
addBounds
Adds one element toboundslist.- Parameters:
element- A bounds element- Returns:
thisbuilder for use in a chained invocation
-
addBounds
Adds elements toboundslist.- Parameters:
elements- An array of bounds elements- Returns:
thisbuilder for use in a chained invocation
-
addAllBounds
public final EncodedElement.TypeParam.Builder addAllBounds(Iterable<? extends Type.Defined> elements) Adds elements toboundslist.- Parameters:
elements- An iterable of bounds elements- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newTypeParam.- Returns:
- An immutable instance of TypeParam
- Throws:
IllegalStateException- if any required attributes are missing
-
nameIsSet
private boolean nameIsSet() -
checkNotIsSet
-
checkRequiredAttributes
private void checkRequiredAttributes() -
formatRequiredAttributesMessage
-