@ParametersAreNonnullByDefault @Generated(value="org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableGenericHolder<T> extends Object implements GenericHolder<T>
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableGenericHolder.Builder<T> |
| Modifier and Type | Method and Description |
|---|---|
static <T> ImmutableGenericHolder.Builder<T> |
builder() |
static <T> ImmutableGenericHolder<T> |
copyOf(GenericHolder<T> instance) |
boolean |
equals(Object another) |
int |
hashCode() |
T |
mandatory() |
T |
optional() |
String |
toString() |
ImmutableGenericHolder<T> |
withMandatory(T value) |
ImmutableGenericHolder<T> |
withOptional(T value) |
public T mandatory()
public final ImmutableGenericHolder<T> withMandatory(T value)
public final ImmutableGenericHolder<T> withOptional(@Nullable T value)
public int hashCode()
public String toString()
public static <T> ImmutableGenericHolder<T> copyOf(GenericHolder<T> instance)
public static <T> ImmutableGenericHolder.Builder<T> builder()
Copyright © 2022 The Immutables.org authors. All rights reserved.