@ParametersAreNonnullByDefault @Generated(value={"Immutables.generator","InputIF"}) @Immutable public final class Input extends Object implements InputIF
InputIF.
Use the builder to create immutable instances:
Input.builder().
Use the static factory method to create immutable instances:
Input.of().
| Modifier and Type | Class and Description |
|---|---|
static class |
Input.Builder
Builds instances of type
Input. |
| Modifier and Type | Method and Description |
|---|---|
static Input.Builder |
builder()
Creates a builder for
Input. |
static Input |
copyOf(InputIF instance)
Creates an immutable copy of a
InputIF value. |
boolean |
equals(Object another)
This instance is equal to all instances of
Input that have equal attribute values. |
Optional<String> |
getBlockId() |
BlockElement |
getElement() |
Optional<Text> |
getHint() |
Text |
getLabel() |
String |
getType() |
int |
hashCode()
Computes a hash code from attributes:
type, label, element, hint, optional, blockId. |
Optional<Boolean> |
isOptional() |
static Input |
of(Text label,
BlockElement element)
Construct a new immutable
Input instance. |
String |
toString()
Prints the immutable value
Input with attribute values. |
Input |
withBlockId(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
blockId attribute. |
Input |
withBlockId(String value)
Copy the current immutable object by setting a present value for the optional
blockId attribute. |
Input |
withElement(BlockElement element)
Copy the current immutable object by setting a value for the
element attribute. |
Input |
withHint(Optional<Text> optional)
Copy the current immutable object by setting an optional value for the
hint attribute. |
Input |
withHint(Text value)
Copy the current immutable object by setting a present value for the optional
hint attribute. |
Input |
withLabel(Text label)
Copy the current immutable object by setting a value for the
label attribute. |
Input |
withOptional(Boolean value)
Copy the current immutable object by setting a present value for the optional
optional attribute. |
Input |
withOptional(Optional<Boolean> optional)
Copy the current immutable object by setting an optional value for the
optional attribute. |
public String getType()
public Text getLabel()
public BlockElement getElement()
getElement in interface InputIFelement attributepublic Optional<Boolean> isOptional()
isOptional in interface InputIFoptional attributepublic Optional<String> getBlockId()
getBlockId in interface BlockblockId attributepublic final Input withLabel(Text label)
label attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.label - A new value for labelthis objectpublic final Input withElement(BlockElement element)
element attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.element - A new value for elementthis objectpublic final Input withHint(@Nullable Text value)
hint attribute.value - The value for hint, null is accepted as java.util.Optional.empty()this objectpublic final Input withHint(Optional<Text> optional)
hint attribute.
A shallow reference equality check is used on unboxed optional value to prevent copying of the same value by returning this.optional - A value for hintthis objectpublic final Input withOptional(@Nullable Boolean value)
optional attribute.value - The value for optional, null is accepted as java.util.Optional.empty()this objectpublic final Input withOptional(Optional<Boolean> optional)
optional attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for optionalthis objectpublic final Input withBlockId(@Nullable String value)
blockId attribute.value - The value for blockId, null is accepted as java.util.Optional.empty()this objectpublic final Input withBlockId(Optional<String> optional)
blockId attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for blockIdthis objectpublic boolean equals(@Nullable Object another)
Input that have equal attribute values.public int hashCode()
type, label, element, hint, optional, blockId.public String toString()
Input with attribute values.public static Input of(Text label, BlockElement element)
Input instance.label - The value for the label attributeelement - The value for the element attributepublic static Input copyOf(InputIF instance)
InputIF value.
Uses accessors to get values to initialize the new immutable instance.
If an instance is already immutable, it is returned as is.instance - The instance to copypublic static Input.Builder builder()
Input.Copyright © 2019. All rights reserved.