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