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