Package com.landawn.abacus.util
Class Fn.Factory
java.lang.Object
com.landawn.abacus.util.Fn.Factory
- Direct Known Subclasses:
Fn.IntFunctions
- Enclosing class:
- Fn
The Class Factory.
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> IntFunction<ArrayBlockingQueue<T>>
static <T> IntFunction<ArrayDeque<T>>
Of array deque.static <K,
V> IntFunction<BiMap<K, V>> ofBiMap()
Of bi map.static IntFunction<boolean[]>
Of boolean array.static IntFunction<BooleanList>
Of boolean list.static IntFunction<byte[]>
Of byte array.static IntFunction<ByteList>
Of byte list.static IntFunction<char[]>
Of char array.static IntFunction<CharList>
Of char list.static <T> IntFunction<? extends Collection<T>>
ofCollection
(Class<?> targetClass) static <K,
V> IntFunction<ConcurrentHashMap<K, V>> Of concurrent hash map.static <T> IntFunction<ConcurrentLinkedQueue<T>>
static <K,
V> IntFunction<ConcurrentMap<K, V>> Of concurrent map.static <T> IntFunction<Deque<T>>
ofDeque()
static <T> IntFunction<NoCachingNoUpdating.DisposableArray<T>>
ofDisposableArray
(Class<T> componentType) static IntFunction<double[]>
Of double array.static IntFunction<DoubleList>
Of double list.static IntFunction<float[]>
Of float array.static IntFunction<FloatList>
Of float list.static <K,
V> IntFunction<IdentityHashMap<K, V>> Of identity hash map.static IntFunction<ImmutableList<?>>
Deprecated.unsupported operation.static IntFunction<ImmutableMap<?,
?>> Deprecated.unsupported operation.static IntFunction<ImmutableSet<?>>
Deprecated.unsupported operation.static IntFunction<int[]>
Of int array.static IntFunction<IntList>
Of int list.static <T> IntFunction<LinkedBlockingDeque<T>>
static <T> IntFunction<LinkedBlockingQueue<T>>
static <K,
V> IntFunction<Map<K, V>> Of linked hash map.static <T> IntFunction<Set<T>>
Of linked hash set.static <T> IntFunction<LinkedList<T>>
Of linked list.static <T> IntFunction<List<T>>
ofList()
static <K,
E> IntFunction<ListMultimap<K, E>> Of list multimap.static IntFunction<long[]>
Of long array.static IntFunction<LongList>
Of long list.static <T> IntFunction<LongMultiset<T>>
Of long multiset.static <K,
V> IntFunction<Map<K, V>> ofMap()
static <K,
V> IntFunction<? extends Map<K, V>> static <T> IntFunction<Multiset<T>>
static <K,
V> IntFunction<NavigableMap<K, V>> Of navigable map.static <T> IntFunction<NavigableSet<T>>
Of navigable set.static IntFunction<Object[]>
Of object array.static <T> IntFunction<PriorityQueue<T>>
Of priority queue.static <T> IntFunction<Queue<T>>
ofQueue()
static <T> IntFunction<Set<T>>
ofSet()
static <K,
E> IntFunction<SetMultimap<K, E>> Of set multimap.static IntFunction<short[]>
Of short array.static IntFunction<ShortList>
Of short list.static <K,
V> IntFunction<SortedMap<K, V>> Of sorted map.static <T> IntFunction<SortedSet<T>>
Of sorted set.static IntFunction<String[]>
Of string array.static <K,
V> IntFunction<TreeMap<K, V>> Of tree map.static <T> IntFunction<TreeSet<T>>
Of tree set.static <T extends Collection>
booleanregisterForCollection
(Class<T> targetClass, IntFunction<T> creator) static <T extends Map>
booleanregisterForMap
(Class<T> targetClass, IntFunction<T> creator) static <T,
C extends Collection<T>>
IntFunction<? extends C>single
(IntFunction<? extends C> supplier) Deprecated.
-
Method Details
-
ofBooleanArray
Of boolean array.- Returns:
-
ofCharArray
Of char array.- Returns:
-
ofByteArray
Of byte array.- Returns:
-
ofShortArray
Of short array.- Returns:
-
ofIntArray
Of int array.- Returns:
-
ofLongArray
Of long array.- Returns:
-
ofFloatArray
Of float array.- Returns:
-
ofDoubleArray
Of double array.- Returns:
-
ofStringArray
Of string array.- Returns:
-
ofObjectArray
Of object array.- Returns:
-
ofBooleanList
Of boolean list.- Returns:
-
ofCharList
Of char list.- Returns:
-
ofByteList
Of byte list.- Returns:
-
ofShortList
Of short list.- Returns:
-
ofIntList
Of int list.- Returns:
-
ofLongList
Of long list.- Returns:
-
ofFloatList
Of float list.- Returns:
-
ofDoubleList
Of double list.- Returns:
-
ofList
- Type Parameters:
T
-- Returns:
-
ofLinkedList
Of linked list.- Type Parameters:
T
-- Returns:
-
ofSet
- Type Parameters:
T
-- Returns:
-
ofLinkedHashSet
Of linked hash set.- Type Parameters:
T
-- Returns:
-
ofSortedSet
Of sorted set.- Type Parameters:
T
-- Returns:
-
ofTreeSet
Of tree set.- Type Parameters:
T
-- Returns:
-
ofQueue
- Type Parameters:
T
-- Returns:
-
ofDeque
- Type Parameters:
T
-- Returns:
-
ofArrayDeque
Of array deque.- Type Parameters:
T
-- Returns:
-
ofLinkedBlockingQueue
-
ofArrayBlockingQueue
-
ofLinkedBlockingDeque
-
ofConcurrentLinkedQueue
-
ofPriorityQueue
Of priority queue.- Type Parameters:
T
-- Returns:
-
ofMap
- Type Parameters:
K
- the key typeV
- the value type- Returns:
-
ofLinkedHashMap
Of linked hash map.- Type Parameters:
K
- the key typeV
- the value type- Returns:
-
ofIdentityHashMap
Of identity hash map.- Type Parameters:
K
- the key typeV
- the value type- Returns:
-
ofSortedMap
Of sorted map.- Type Parameters:
K
- the key typeV
- the value type- Returns:
-
ofTreeMap
Of tree map.- Type Parameters:
K
- the key typeV
- the value type- Returns:
-
ofConcurrentMap
Of concurrent map.- Type Parameters:
K
- the key typeV
- the value type- Returns:
-
ofConcurrentHashMap
Of concurrent hash map.- Type Parameters:
K
- the key typeV
- the value type- Returns:
-
ofBiMap
Of bi map.- Type Parameters:
K
- the key typeV
- the value type- Returns:
-
ofMultiset
- Type Parameters:
T
-- Returns:
-
ofLongMultiset
Of long multiset.- Type Parameters:
T
-- Returns:
-
ofListMultimap
Of list multimap.- Type Parameters:
K
- the key typeE
-- Returns:
-
ofSetMultimap
Of set multimap.- Type Parameters:
K
- the key typeE
-- Returns:
-
ofDisposableArray
@Beta @SequentialOnly @Stateful public static IntFunction<NoCachingNoUpdating.DisposableObjArray> ofDisposableArray()- Returns:
- a new created
IntFunction
whoseapply
will return the sameDisposableObjArray
which is defined as a private field.
-
ofDisposableArray
@Beta @SequentialOnly @Stateful public static <T> IntFunction<NoCachingNoUpdating.DisposableArray<T>> ofDisposableArray(Class<T> componentType) - Returns:
- a new created
IntFunction
whoseapply
will return the sameDisposableArray
which is defined as a private field.
-
ofCollection
-
ofMap
-
registerForCollection
public static <T extends Collection> boolean registerForCollection(Class<T> targetClass, IntFunction<T> creator) -
registerForMap
-
ofImmutableList
Deprecated.unsupported operation.- Returns:
- Throws:
UnsupportedOperationException
- the unsupported operation exception
-
ofImmutableSet
Deprecated.unsupported operation.- Returns:
- Throws:
UnsupportedOperationException
- the unsupported operation exception
-
ofImmutableMap
Deprecated.unsupported operation.- Returns:
- Throws:
UnsupportedOperationException
- the unsupported operation exception
-
single
@Deprecated @SequentialOnly @Stateful public static <T,C extends Collection<T>> IntFunction<? extends C> single(IntFunction<? extends C> supplier) Deprecated.- Type Parameters:
T
-C
-- Parameters:
supplier
-- Returns:
-