@Generated(value="org.immutables.processor.ProxyProcessor") public final class ImmutableNone<T> extends Maybe.None<T>
Maybe.None.
Use the builder to create immutable instances:
ImmutableNone.builder().
Use the static factory method to get the default singleton instance:
ImmutableNone.of().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableNone.Builder<T>
Builds instances of type
ImmutableNone. |
Maybe.None<T>, Maybe.Some<T>| Modifier and Type | Method and Description |
|---|---|
static <T> ImmutableNone.Builder<T> |
builder()
Creates a builder for
ImmutableNone. |
static <T> ImmutableNone<T> |
copyOf(Maybe.None<T> instance)
Creates an immutable copy of a
Maybe.None value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableNone that have equal attribute values. |
int |
hashCode()
Returns a constant hash code value.
|
static <T> ImmutableNone<T> |
of()
Returns the default immutable singleton value of
None |
String |
toString()
Prints the immutable value
None. |
get, hasSome, mapgetOrThrow, none, somepublic boolean equals(Object another)
ImmutableNone that have equal attribute values.public int hashCode()
public String toString()
None.public static <T> ImmutableNone<T> of()
Nonepublic static <T> ImmutableNone<T> copyOf(Maybe.None<T> instance)
Maybe.None value.
Uses accessors to get values to initialize the new immutable instance.
If an instance is already immutable, it is returned as is.T - generic parameter Tinstance - The instance to copypublic static <T> ImmutableNone.Builder<T> builder()
ImmutableNone.
ImmutableNone.<T>builder()
.build();
T - generic parameter TCopyright © 2023. All rights reserved.