| Modifier and Type | Method and Description |
|---|---|
static <T> Supplier<ArrayDeque<T>> |
ofArrayDeque()
Of array deque.
|
static <K,V> Supplier<BiMap<K,V>> |
ofBiMap() |
static <K,V> Supplier<ConcurrentHashMap<K,V>> |
ofConcurrentHashMap() |
static <T> Supplier<ConcurrentLinkedQueue<T>> |
ofConcurrentLinkedQueue()
Of concurrent linked queue.
|
static <K,V> Supplier<ConcurrentMap<K,V>> |
ofConcurrentMap()
Of concurrent map.
|
static <T> Supplier<Deque<T>> |
ofDeque() |
static Supplier<boolean[]> |
ofEmptyBooleanArray()
Of empty boolean array.
|
static Supplier<byte[]> |
ofEmptyByteArray()
Of empty byte array.
|
static Supplier<char[]> |
ofEmptyCharArray()
Of empty char array.
|
static Supplier<double[]> |
ofEmptyDoubleArray()
Of empty double array.
|
static Supplier<float[]> |
ofEmptyFloatArray()
Of empty float array.
|
static Supplier<int[]> |
ofEmptyIntArray()
Of empty int array.
|
static Supplier<long[]> |
ofEmptyLongArray()
Of empty long array.
|
static Supplier<Object[]> |
ofEmptyObjectArray()
Of empty object array.
|
static Supplier<short[]> |
ofEmptyShortArray()
Of empty short array.
|
static Supplier<String[]> |
ofEmptyStringArray()
Of empty string array.
|
static Supplier<String> |
ofGUID() |
static <K,V> Supplier<IdentityHashMap<K,V>> |
ofIdentityHashMap()
Of identity hash map.
|
static Supplier<ImmutableList<?>> |
ofImmutableList()
Deprecated.
|
static Supplier<ImmutableMap<?,?>> |
ofImmutableMap()
Deprecated.
|
static Supplier<ImmutableSet<?>> |
ofImmutableSet()
Deprecated.
|
static <T> Supplier<T> |
ofInstance(T instance)
Returns a supplier that always supplies
instance. |
static <T> Supplier<LinkedBlockingQueue<T>> |
ofLinkedBlockingQueue()
Of linked blocking queue.
|
static <K,V> Supplier<Map<K,V>> |
ofLinkedHashMap()
Of linked hash map.
|
static <T> Supplier<Set<T>> |
ofLinkedHashSet()
Of linked hash set.
|
static <T> Supplier<LinkedList<T>> |
ofLinkedList()
Of linked list.
|
static <T> Supplier<List<T>> |
ofList() |
static <K,E> Supplier<ListMultimap<K,E>> |
ofListMultimap() |
static <K,E> Supplier<ListMultimap<K,E>> |
ofListMultimap(Class<? extends Map> mapType) |
static <K,E> Supplier<ListMultimap<K,E>> |
ofListMultimap(Class<? extends Map> mapType,
Class<? extends List> valueType) |
static <K,E> Supplier<ListMultimap<K,E>> |
ofListMultimap(Supplier<? extends Map<K,List<E>>> mapSupplier,
Supplier<? extends List<E>> valueSupplier) |
static <K,V> Supplier<Map<K,V>> |
ofMap() |
static <K,E,V extends Collection<E>> |
ofMultimap(Supplier<? extends Map<K,V>> mapSupplier,
Supplier<? extends V> valueSupplier) |
static <T> Supplier<Multiset<T>> |
ofMultiset() |
static <T> Supplier<Multiset<T>> |
ofMultiset(Class<? extends Map> valueMapType) |
static <T> Supplier<Multiset<T>> |
ofMultiset(Supplier<? extends Map<T,?>> mapSupplier) |
static <K,V> Supplier<NavigableMap<K,V>> |
ofNavigableMap()
Of navigable map.
|
static <T> Supplier<NavigableSet<T>> |
ofNavigableSet()
Of navigable set.
|
static <T> Supplier<PriorityQueue<T>> |
ofPriorityQueue()
Of priority queue.
|
static <T> Supplier<Queue<T>> |
ofQueue() |
static <T> Supplier<Set<T>> |
ofSet() |
static <K,E> Supplier<SetMultimap<K,E>> |
ofSetMultimap() |
static <K,E> Supplier<SetMultimap<K,E>> |
ofSetMultimap(Class<? extends Map> mapType) |
static <K,E> Supplier<SetMultimap<K,E>> |
ofSetMultimap(Class<? extends Map> mapType,
Class<? extends Set> valueType) |
static <K,E> Supplier<SetMultimap<K,E>> |
ofSetMultimap(Supplier<? extends Map<K,Set<E>>> mapSupplier,
Supplier<? extends Set<E>> valueSupplier) |
static <K,V> Supplier<SortedMap<K,V>> |
ofSortedMap()
Of sorted map.
|
static <T> Supplier<SortedSet<T>> |
ofSortedSet()
Of sorted set.
|
static Supplier<StringBuilder> |
ofStringBuilder()
Of string builder.
|
static <K,V> Supplier<TreeMap<K,V>> |
ofTreeMap()
Of tree map.
|
static <T> Supplier<TreeSet<T>> |
ofTreeSet()
Of tree set.
|
static Supplier<String> |
ofUUID() |
static <T,C extends Collection<T>> |
single(Supplier<? extends C> supplier)
Deprecated.
|
public static <T> Supplier<T> ofInstance(T instance)
instance.T - instance - public static Supplier<boolean[]> ofEmptyBooleanArray()
public static Supplier<char[]> ofEmptyCharArray()
public static Supplier<byte[]> ofEmptyByteArray()
public static Supplier<short[]> ofEmptyShortArray()
public static Supplier<int[]> ofEmptyIntArray()
public static Supplier<long[]> ofEmptyLongArray()
public static Supplier<float[]> ofEmptyFloatArray()
public static Supplier<double[]> ofEmptyDoubleArray()
public static Supplier<String[]> ofEmptyStringArray()
public static Supplier<Object[]> ofEmptyObjectArray()
public static <T> Supplier<LinkedList<T>> ofLinkedList()
T - public static <T> Supplier<Set<T>> ofLinkedHashSet()
T - public static <T> Supplier<SortedSet<T>> ofSortedSet()
T - public static <T> Supplier<NavigableSet<T>> ofNavigableSet()
T - public static <T> Supplier<TreeSet<T>> ofTreeSet()
T - public static <T> Supplier<ArrayDeque<T>> ofArrayDeque()
T - public static <T> Supplier<LinkedBlockingQueue<T>> ofLinkedBlockingQueue()
T - public static <T> Supplier<ConcurrentLinkedQueue<T>> ofConcurrentLinkedQueue()
T - public static <T> Supplier<PriorityQueue<T>> ofPriorityQueue()
T - public static <K,V> Supplier<Map<K,V>> ofMap()
K - the key typeV - the value typepublic static <K,V> Supplier<Map<K,V>> ofLinkedHashMap()
K - the key typeV - the value typepublic static <K,V> Supplier<IdentityHashMap<K,V>> ofIdentityHashMap()
K - the key typeV - the value typepublic static <K,V> Supplier<SortedMap<K,V>> ofSortedMap()
K - the key typeV - the value typepublic static <K,V> Supplier<NavigableMap<K,V>> ofNavigableMap()
K - the key typeV - the value typepublic static <K,V> Supplier<TreeMap<K,V>> ofTreeMap()
K - the key typeV - the value typepublic static <K,V> Supplier<ConcurrentMap<K,V>> ofConcurrentMap()
K - the key typeV - the value typepublic static <K,V> Supplier<ConcurrentHashMap<K,V>> ofConcurrentHashMap()
public static <T> Supplier<Multiset<T>> ofMultiset(Supplier<? extends Map<T,?>> mapSupplier)
public static <K,E> Supplier<ListMultimap<K,E>> ofListMultimap()
public static <K,E> Supplier<ListMultimap<K,E>> ofListMultimap(Class<? extends Map> mapType)
public static <K,E> Supplier<ListMultimap<K,E>> ofListMultimap(Class<? extends Map> mapType, Class<? extends List> valueType)
public static <K,E> Supplier<ListMultimap<K,E>> ofListMultimap(Supplier<? extends Map<K,List<E>>> mapSupplier, Supplier<? extends List<E>> valueSupplier)
public static <K,E> Supplier<SetMultimap<K,E>> ofSetMultimap()
public static <K,E> Supplier<SetMultimap<K,E>> ofSetMultimap(Class<? extends Map> mapType)
public static <K,E> Supplier<SetMultimap<K,E>> ofSetMultimap(Class<? extends Map> mapType, Class<? extends Set> valueType)
public static <K,E> Supplier<SetMultimap<K,E>> ofSetMultimap(Supplier<? extends Map<K,Set<E>>> mapSupplier, Supplier<? extends Set<E>> valueSupplier)
public static <K,E,V extends Collection<E>> Supplier<Multimap<K,E,V>> ofMultimap(Supplier<? extends Map<K,V>> mapSupplier, Supplier<? extends V> valueSupplier)
public static Supplier<StringBuilder> ofStringBuilder()
@Deprecated public static Supplier<ImmutableList<?>> ofImmutableList()
UnsupportedOperationException - the unsupported operation exception@Deprecated public static Supplier<ImmutableSet<?>> ofImmutableSet()
UnsupportedOperationException - the unsupported operation exception@Deprecated public static Supplier<ImmutableMap<?,?>> ofImmutableMap()
UnsupportedOperationException - the unsupported operation exception@Deprecated public static <T,C extends Collection<T>> Supplier<? extends C> single(Supplier<? extends C> supplier)
T - C - supplier - Copyright © 2021. All rights reserved.