public final class Functions0
extends java.lang.Object
Modifier and Type | Method | Description |
---|---|---|
static Function0<java.lang.Boolean> |
getFalse() |
|
static Function0<java.lang.Boolean> |
getTrue() |
|
static <T> Function0<MutableList<T>> |
newFastList() |
|
static <T> Function0<MutableBag<T>> |
newHashBag() |
|
static <K,V> Function0<MutableMap<K,V>> |
newUnifiedMap() |
|
static <T> Function0<MutableSet<T>> |
newUnifiedSet() |
|
static <T> Function0<T> |
nullValue() |
|
static <T> Function0<T> |
throwing(ThrowingFunction0<T> throwingFunction0) |
Allows a lambda or anonymous inner class that needs to throw a checked exception to be safely wrapped as a
Function that will throw a RuntimeException, wrapping the checked exception that is the cause.
|
static <T> Function0<T> |
throwing(ThrowingFunction0<T> throwingFunction0,
Function<? super java.lang.Throwable,? extends java.lang.RuntimeException> rethrow) |
Allows a lambda or anonymous inner class that needs to throw a checked exception to be safely wrapped as a
Function0 that will throw a user specified RuntimeException based on the provided function.
|
static <T> Function0<T> |
value(T t) |
|
static Function0<java.util.concurrent.atomic.AtomicInteger> |
zeroAtomicInteger() |
|
static Function0<java.util.concurrent.atomic.AtomicLong> |
zeroAtomicLong() |
|
static Function0<java.math.BigDecimal> |
zeroBigDecimal() |
|
static Function0<java.math.BigInteger> |
zeroBigInteger() |
|
static Function0<java.lang.Integer> |
zeroInteger() |
public static Function0<java.lang.Boolean> getTrue()
public static Function0<java.lang.Boolean> getFalse()
public static <T> Function0<MutableList<T>> newFastList()
public static <T> Function0<MutableSet<T>> newUnifiedSet()
public static <T> Function0<MutableBag<T>> newHashBag()
public static <K,V> Function0<MutableMap<K,V>> newUnifiedMap()
public static <T> Function0<T> throwing(ThrowingFunction0<T> throwingFunction0)
public static <T> Function0<T> throwing(ThrowingFunction0<T> throwingFunction0, Function<? super java.lang.Throwable,? extends java.lang.RuntimeException> rethrow)
public static <T> Function0<T> nullValue()
public static <T> Function0<T> value(T t)
public static Function0<java.lang.Integer> zeroInteger()
public static Function0<java.util.concurrent.atomic.AtomicInteger> zeroAtomicInteger()
public static Function0<java.util.concurrent.atomic.AtomicLong> zeroAtomicLong()
public static Function0<java.math.BigDecimal> zeroBigDecimal()
public static Function0<java.math.BigInteger> zeroBigInteger()
Copyright © 2004–2018. All rights reserved.