public abstract class Holder<E> extends Object
Modifier and Type | Class and Description |
---|---|
static class |
Holder.IntHolder |
static class |
Holder.LazyHolder<E> |
static class |
Holder.LazyIntHolder |
Constructor and Description |
---|
Holder() |
Modifier and Type | Method and Description |
---|---|
abstract E |
get() |
static <T> Holder.LazyHolder<T> |
lazyHolder(NullaryFunction<T> factory) |
static Holder.LazyIntHolder |
lazyIntHolder(NullaryFunction<Integer> factory) |
static <T> Holder<T> |
staticHolder(T value) |
static Holder.IntHolder |
staticIntHolder(int value) |
String |
toString() |
public static <T> Holder<T> staticHolder(T value)
public static Holder.IntHolder staticIntHolder(int value)
public static <T> Holder.LazyHolder<T> lazyHolder(NullaryFunction<T> factory)
public static Holder.LazyIntHolder lazyIntHolder(NullaryFunction<Integer> factory)
public abstract E get()
Copyright © 2015 Oracle Corporation. All rights reserved.