Every object returned from the functions in this class is serializable, unless noted otherwise. They are often not serializable, if they're dealing with stateful objects. (E.g. with iterators, enumerations)
public static < | |
public static < | Gets computer that creates an ArrayList regardless of the argument it applies to. |
public static < | Gets computer that creates an ConcurrentHashMap regardless of the argument it applies to. |
public static < | Gets computer that creates an ConcurrentSkipListMap regardless of the argument it applies to. |
public static < | Gets computer that creates an ConcurrentSkipListSet regardless of the argument it applies to. |
public static < | defaultedSupplier( Creates a supplier that will return the specified default value if the supplier returns null . |
public static < | entryKeyComparator( |
public static < | |
public static < | enumMapComputer( Gets a computer that creates an EnumMap regardless of the argument it applies to. |
public static < | enumSetComputer( Gets a computer that creates an EnumSet regardless of the argument it applies to. |
public static < | Gets computer that creates an HashMap regardless of the argument it applies to. |
public static < | Gets computer that creates an HashSet regardless of the argument it applies to. |
public static < | Gets a predicate that compares its argument to this function argument by identity. |
public static < | |
public static < | Gets computer that creates an IdentityHashMap regardless of the argument it applies to. |
public static < | Gets computer that creates an identity hash set regardless of the argument it applies to. |
public static < | Gets computer that creates an LinkedHashMap regardless of the argument it applies to. |
public static < | Gets computer that creates an LinkedHashSet regardless of the argument it applies to. |
public static < | |
public static < | |
public static < | |
public static < | |
public static < | |
public static Runnable | |
public static < | |
public static < | Gets a comparator that sorts its non- null arguments by natural order, else the null
values first. |
public static < | Gets a comparator that sorts its non- null arguments by natural order, else the null
values last. |
public static < | Gets computer that creates an Object regardless of the argument it applies to. |
public static < | Gets a function that creates an ArrayList with for the capacity it is applied to. |
public static < | Gets a function that creates a list with for the capacity it is applied to. |
public static Runnable | Converts the argument throwing runnable to a simple Runnable by rethrowing any exceptions sneakily. |
public static < | toComputer( Converts the argument Supplier to a computer function. |
public static < | toIterable( Converts a supplier of iterators to an Iterable. |
public static < | toLockedRemovingSupplier( Converts the argument iterator to a Supplier that removes the elements after retrieving them. |
public static < | toLockedSupplier( Converts the argument enumeration to a Supplier. |
public static < | toLockedSupplier( Converts the argument iterator to a Supplier. |
public static < | toRemovingSupplier( Converts the argument iterator to a Supplier that removes the elements after retrieving them. |
public static < | toSupplier( Converts the argument enumeration to a Supplier. |
public static < | toSupplier( Converts the argument iterator to a Supplier. |
public static < | toSynchronizedRemovingSupplier( Converts the argument iterator to a Supplier that removes the elements after retrieving them. |
public static < | toSynchronizedSupplier( Converts the argument enumeration to a Supplier. |
public static < | toSynchronizedSupplier( Converts the argument iterator to a Supplier. |
public static < | Gets computer that creates an TreeMap regardless of the argument it applies to. |
public static < | Gets computer that creates an TreeSet regardless of the argument it applies to. |
public static < | valSupplier( Gets a Supplier that always returns the same value. |
true
.
Computers can be used in Map.computeIfAbsent(
Computers can be used in Map.computeIfAbsent(
Computers can be used in Map.computeIfAbsent(
Computers can be used in Map.computeIfAbsent(
null
.
The returned supplier will return the result of the argument supplier if non-null
, else the
specified default value. If the supplier argument is null
, the default value will always be
returned.
If the argument is null
, entryKeyNaturalComparator() is returned.
The enum map will have the argument enum class as its key type.
Computers can be used in Map.computeIfAbsent(
The enum set will have the argument enum class as its element type.
Computers can be used in Map.computeIfAbsent(
Computers can be used in Map.computeIfAbsent(
Computers can be used in Map.computeIfAbsent(
Computers can be used in Map.computeIfAbsent(
The identity hash set is created by calling
ObjectUtils.setFromMap(new IdentityHashMap<>())
.
Computers can be used in Map.computeIfAbsent(
Computers can be used in Map.computeIfAbsent(
Computers can be used in Map.computeIfAbsent(
false
.null
.null
arguments by natural order, else the null
values first.null
arguments by natural order, else the null
values last.
Computers can be used in Map.computeIfAbsent(
Same as:
Function<Integer, ArrayList<T>> creator = ArrayList::new;
The result of the function is an immutable empty list if the capacity is 0, else it is a list that can hold at least up to capacity number of elements.
This method should be very rarely used if ever. Any exception that is thrown by the ThrowingRunnable.run() method will be rethrown out of the returned Runnable.run() method. If the thrown exception is checked, the caller of the Runnable.run() method may not be able to actually catch the exception.
Computers can be used in Map.computeIfAbsent(
The returned computer will call Supplier.get() regardless of the argument it applies to.
Same as toRemovingSupplier(
The returned supplier is not serializable.
Same as toSupplier(
The returned supplier is not serializable.
Same as toSupplier(
The returned supplier is not serializable.
The returned supplier will return null
if there are no more elements in the iterator. If the
iterator contains null
elements, the code that uses the created supplier may not work properly.
The returned supplier will call Iterator.remove() after retrieving each element. If the iterator is unmodifiable, then the exception will be propagated to the caller.
The returned supplier is not serializable.
The returned supplier will return null
if there are no more elements in the enumeration. If the
iterator contains null
elements, the code that uses the created supplier may not work properly.
The returned supplier is not serializable.
The returned supplier will return null
if there are no more elements in the iterator. If the
iterator contains null
elements, the code that uses the created supplier may not work properly.
The returned supplier is not serializable.
Same as toRemovingSupplier(
The returned supplier is not serializable.
Same as toSupplier(
The returned supplier is not serializable.
Same as toSupplier(
The returned supplier is not serializable.
Computers can be used in Map.computeIfAbsent(
Computers can be used in Map.computeIfAbsent(