@ParametersAreNonnullByDefault @Generated(value={"Immutables.generator","ViewPlainTextInputIF"}) @Immutable public final class ViewPlainTextInput extends Object implements ViewPlainTextInputIF
ViewPlainTextInputIF.
Use the builder to create immutable instances:
ViewPlainTextInput.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ViewPlainTextInput.Builder
Builds instances of type
ViewPlainTextInput. |
| Modifier and Type | Method and Description |
|---|---|
static ViewPlainTextInput.Builder |
builder()
Creates a builder for
ViewPlainTextInput. |
static ViewPlainTextInput |
copyOf(ViewPlainTextInputIF instance)
Creates an immutable copy of a
ViewPlainTextInputIF value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ViewPlainTextInput that have equal attribute values. |
ViewInputType |
getType() |
Optional<String> |
getValue() |
int |
hashCode()
Computes a hash code from attributes:
value, type. |
String |
toString()
Prints the immutable value
ViewPlainTextInput with attribute values. |
ViewPlainTextInput |
withType(ViewInputType type)
Copy the current immutable object by setting a value for the
type attribute. |
ViewPlainTextInput |
withValue(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
value attribute. |
ViewPlainTextInput |
withValue(String value)
Copy the current immutable object by setting a present value for the optional
value attribute. |
public Optional<String> getValue()
getValue in interface ViewPlainTextInputIFvalue attributepublic ViewInputType getType()
public final ViewPlainTextInput withValue(@Nullable String value)
value attribute.value - The value for value, null is accepted as java.util.Optional.empty()this objectpublic final ViewPlainTextInput withValue(Optional<String> optional)
value attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for valuethis objectpublic final ViewPlainTextInput withType(ViewInputType type)
type attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.type - A new value for typethis objectpublic boolean equals(@Nullable Object another)
ViewPlainTextInput that have equal attribute values.public int hashCode()
value, type.public String toString()
ViewPlainTextInput with attribute values.public static ViewPlainTextInput copyOf(ViewPlainTextInputIF instance)
ViewPlainTextInputIF 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 ViewPlainTextInput.Builder builder()
ViewPlainTextInput.Copyright © 2020. All rights reserved.