Modifier and Type | Method and Description |
---|---|
static <T> Supplier<ArrayDeque<T>> |
ofArrayDeque()
Of array deque.
|
static <K,V> Supplier<BiMap<K,V>> |
ofBiMap()
Of bi map.
|
static Supplier<BooleanList> |
ofBooleanList()
Of boolean list.
|
static Supplier<ByteList> |
ofByteList()
Of byte list.
|
static Supplier<CharList> |
ofCharList()
Of char list.
|
static <K,V> Supplier<ConcurrentHashMap<K,V>> |
ofConcurrentHashMap()
Of concurrent hash map.
|
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<DoubleList> |
ofDoubleList()
Of double list.
|
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<FloatList> |
ofFloatList()
Of float list.
|
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 Supplier<IntList> |
ofIntList()
Of int list.
|
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()
Of list multimap.
|
static Supplier<LongList> |
ofLongList()
Of long list.
|
static <T> Supplier<LongMultiset<T>> |
ofLongMultiset()
Of long multiset.
|
static <K,V> Supplier<Map<K,V>> |
ofMap() |
static <T> Supplier<Multiset<T>> |
ofMultiset() |
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()
Of set multimap.
|
static Supplier<ShortList> |
ofShortList()
Of short list.
|
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 Supplier<BooleanList> ofBooleanList()
public static Supplier<DoubleList> ofDoubleList()
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()
K
- the key typeV
- the value typepublic static <K,V> Supplier<BiMap<K,V>> ofBiMap()
K
- the key typeV
- the value typepublic static <T> Supplier<LongMultiset<T>> ofLongMultiset()
T
- public static <K,E> Supplier<ListMultimap<K,E>> ofListMultimap()
K
- the key typeE
- public static <K,E> Supplier<SetMultimap<K,E>> ofSetMultimap()
K
- the key typeE
- 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 © 2020. All rights reserved.