Add @SuppressWarnings("unchecked")
This commit is contained in:
parent
38f55010fb
commit
a3d07e2962
|
@ -43,6 +43,7 @@ public interface FailableBiConsumer<T, U, E extends Throwable> {
|
||||||
* @param <E> The kind of thrown exception or error.
|
* @param <E> The kind of thrown exception or error.
|
||||||
* @return The NOP singleton.
|
* @return The NOP singleton.
|
||||||
*/
|
*/
|
||||||
|
@SuppressWarnings("unchecked")
|
||||||
static <T, U, E extends Throwable> FailableBiConsumer<T, U, E> nop() {
|
static <T, U, E extends Throwable> FailableBiConsumer<T, U, E> nop() {
|
||||||
return NOP;
|
return NOP;
|
||||||
}
|
}
|
||||||
|
|
|
@ -46,6 +46,7 @@ public interface FailableBiFunction<T, U, R, E extends Throwable> {
|
||||||
* @param <E> The kind of thrown exception or error.
|
* @param <E> The kind of thrown exception or error.
|
||||||
* @return The NOP singleton.
|
* @return The NOP singleton.
|
||||||
*/
|
*/
|
||||||
|
@SuppressWarnings("unchecked")
|
||||||
static <T, U, R, E extends Throwable> FailableBiFunction<T, U, R, E> nop() {
|
static <T, U, R, E extends Throwable> FailableBiFunction<T, U, R, E> nop() {
|
||||||
return NOP;
|
return NOP;
|
||||||
}
|
}
|
||||||
|
|
|
@ -47,6 +47,7 @@ public interface FailableBiPredicate<T, U, E extends Throwable> {
|
||||||
* @param <E> The kind of thrown exception or error.
|
* @param <E> The kind of thrown exception or error.
|
||||||
* @return The NOP singleton.
|
* @return The NOP singleton.
|
||||||
*/
|
*/
|
||||||
|
@SuppressWarnings("unchecked")
|
||||||
static <T, U, E extends Throwable> FailableBiPredicate<T, U, E> falsePredicate() {
|
static <T, U, E extends Throwable> FailableBiPredicate<T, U, E> falsePredicate() {
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
@ -59,6 +60,7 @@ public interface FailableBiPredicate<T, U, E extends Throwable> {
|
||||||
* @param <E> The kind of thrown exception or error.
|
* @param <E> The kind of thrown exception or error.
|
||||||
* @return The NOP singleton.
|
* @return The NOP singleton.
|
||||||
*/
|
*/
|
||||||
|
@SuppressWarnings("unchecked")
|
||||||
static <T, U, E extends Throwable> FailableBiPredicate<T, U, E> truePredicate() {
|
static <T, U, E extends Throwable> FailableBiPredicate<T, U, E> truePredicate() {
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
|
@ -46,6 +46,7 @@ public interface FailableConsumer<T, E extends Throwable> {
|
||||||
* @param <E> The kind of thrown exception or error.
|
* @param <E> The kind of thrown exception or error.
|
||||||
* @return The NOP singleton.
|
* @return The NOP singleton.
|
||||||
*/
|
*/
|
||||||
|
@SuppressWarnings("unchecked")
|
||||||
static <T, E extends Throwable> FailableConsumer<T, E> nop() {
|
static <T, E extends Throwable> FailableConsumer<T, E> nop() {
|
||||||
return NOP;
|
return NOP;
|
||||||
}
|
}
|
||||||
|
|
|
@ -39,6 +39,7 @@ public interface FailableDoubleConsumer<E extends Throwable> {
|
||||||
* @param <E> The kind of thrown exception or error.
|
* @param <E> The kind of thrown exception or error.
|
||||||
* @return The NOP singleton.
|
* @return The NOP singleton.
|
||||||
*/
|
*/
|
||||||
|
@SuppressWarnings("unchecked")
|
||||||
static <E extends Throwable> FailableDoubleConsumer<E> nop() {
|
static <E extends Throwable> FailableDoubleConsumer<E> nop() {
|
||||||
return NOP;
|
return NOP;
|
||||||
}
|
}
|
||||||
|
|
|
@ -40,6 +40,7 @@ public interface FailableDoubleFunction<R, E extends Throwable> {
|
||||||
* @param <E> The kind of thrown exception or error.
|
* @param <E> The kind of thrown exception or error.
|
||||||
* @return The NOP singleton.
|
* @return The NOP singleton.
|
||||||
*/
|
*/
|
||||||
|
@SuppressWarnings("unchecked")
|
||||||
static <R, E extends Throwable> FailableDoubleFunction<R, E> nop() {
|
static <R, E extends Throwable> FailableDoubleFunction<R, E> nop() {
|
||||||
return NOP;
|
return NOP;
|
||||||
}
|
}
|
||||||
|
|
|
@ -43,6 +43,7 @@ public interface FailableDoublePredicate<E extends Throwable> {
|
||||||
* @param <E> The kind of thrown exception or error.
|
* @param <E> The kind of thrown exception or error.
|
||||||
* @return The NOP singleton.
|
* @return The NOP singleton.
|
||||||
*/
|
*/
|
||||||
|
@SuppressWarnings("unchecked")
|
||||||
static <E extends Throwable> FailableDoublePredicate<E> falsePredicate() {
|
static <E extends Throwable> FailableDoublePredicate<E> falsePredicate() {
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
@ -53,6 +54,7 @@ public interface FailableDoublePredicate<E extends Throwable> {
|
||||||
* @param <E> The kind of thrown exception or error.
|
* @param <E> The kind of thrown exception or error.
|
||||||
* @return The NOP singleton.
|
* @return The NOP singleton.
|
||||||
*/
|
*/
|
||||||
|
@SuppressWarnings("unchecked")
|
||||||
static <E extends Throwable> FailableDoublePredicate<E> truePredicate() {
|
static <E extends Throwable> FailableDoublePredicate<E> truePredicate() {
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
|
@ -38,7 +38,8 @@ public interface FailableDoubleToIntFunction<E extends Throwable> {
|
||||||
* @param <E> The kind of thrown exception or error.
|
* @param <E> The kind of thrown exception or error.
|
||||||
* @return The NOP singleton.
|
* @return The NOP singleton.
|
||||||
*/
|
*/
|
||||||
static <E extends Throwable> FailableDoubleToIntFunction<E> nop() {
|
@SuppressWarnings("unchecked")
|
||||||
|
static <E extends Throwable> FailableDoubleToIntFunction<E> nop() {
|
||||||
return NOP;
|
return NOP;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -38,6 +38,7 @@ public interface FailableDoubleToLongFunction<E extends Throwable> {
|
||||||
* @param <E> The kind of thrown exception or error.
|
* @param <E> The kind of thrown exception or error.
|
||||||
* @return The NOP singleton.
|
* @return The NOP singleton.
|
||||||
*/
|
*/
|
||||||
|
@SuppressWarnings("unchecked")
|
||||||
static <E extends Throwable> FailableDoubleToLongFunction<E> nop() {
|
static <E extends Throwable> FailableDoubleToLongFunction<E> nop() {
|
||||||
return NOP;
|
return NOP;
|
||||||
}
|
}
|
||||||
|
|
|
@ -48,6 +48,7 @@ public interface FailableDoubleUnaryOperator<E extends Throwable> {
|
||||||
* @param <E> The kind of thrown exception or error.
|
* @param <E> The kind of thrown exception or error.
|
||||||
* @return The NOP singleton.
|
* @return The NOP singleton.
|
||||||
*/
|
*/
|
||||||
|
@SuppressWarnings("unchecked")
|
||||||
static <E extends Throwable> FailableDoubleUnaryOperator<E> nop() {
|
static <E extends Throwable> FailableDoubleUnaryOperator<E> nop() {
|
||||||
return NOP;
|
return NOP;
|
||||||
}
|
}
|
||||||
|
|
|
@ -54,6 +54,7 @@ public interface FailableFunction<T, R, E extends Throwable> {
|
||||||
* @param <E> The kind of thrown exception or error.
|
* @param <E> The kind of thrown exception or error.
|
||||||
* @return The NOP singleton.
|
* @return The NOP singleton.
|
||||||
*/
|
*/
|
||||||
|
@SuppressWarnings("unchecked")
|
||||||
static <T, R, E extends Throwable> FailableFunction<T, R, E> nop() {
|
static <T, R, E extends Throwable> FailableFunction<T, R, E> nop() {
|
||||||
return NOP;
|
return NOP;
|
||||||
}
|
}
|
||||||
|
|
|
@ -39,6 +39,7 @@ public interface FailableIntConsumer<E extends Throwable> {
|
||||||
* @param <E> The kind of thrown exception or error.
|
* @param <E> The kind of thrown exception or error.
|
||||||
* @return The NOP singleton.
|
* @return The NOP singleton.
|
||||||
*/
|
*/
|
||||||
|
@SuppressWarnings("unchecked")
|
||||||
static <E extends Throwable> FailableIntConsumer<E> nop() {
|
static <E extends Throwable> FailableIntConsumer<E> nop() {
|
||||||
return NOP;
|
return NOP;
|
||||||
}
|
}
|
||||||
|
|
|
@ -40,6 +40,7 @@ public interface FailableIntFunction<R, E extends Throwable> {
|
||||||
* @param <E> The kind of thrown exception or error.
|
* @param <E> The kind of thrown exception or error.
|
||||||
* @return The NOP singleton.
|
* @return The NOP singleton.
|
||||||
*/
|
*/
|
||||||
|
@SuppressWarnings("unchecked")
|
||||||
static <R, E extends Throwable> FailableIntFunction<R, E> nop() {
|
static <R, E extends Throwable> FailableIntFunction<R, E> nop() {
|
||||||
return NOP;
|
return NOP;
|
||||||
}
|
}
|
||||||
|
|
|
@ -43,6 +43,7 @@ public interface FailableIntPredicate<E extends Throwable> {
|
||||||
* @param <E> The kind of thrown exception or error.
|
* @param <E> The kind of thrown exception or error.
|
||||||
* @return The NOP singleton.
|
* @return The NOP singleton.
|
||||||
*/
|
*/
|
||||||
|
@SuppressWarnings("unchecked")
|
||||||
static <E extends Throwable> FailableIntPredicate<E> falsePredicate() {
|
static <E extends Throwable> FailableIntPredicate<E> falsePredicate() {
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
@ -53,6 +54,7 @@ public interface FailableIntPredicate<E extends Throwable> {
|
||||||
* @param <E> The kind of thrown exception or error.
|
* @param <E> The kind of thrown exception or error.
|
||||||
* @return The NOP singleton.
|
* @return The NOP singleton.
|
||||||
*/
|
*/
|
||||||
|
@SuppressWarnings("unchecked")
|
||||||
static <E extends Throwable> FailableIntPredicate<E> truePredicate() {
|
static <E extends Throwable> FailableIntPredicate<E> truePredicate() {
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
|
@ -38,6 +38,7 @@ public interface FailableIntToDoubleFunction<E extends Throwable> {
|
||||||
* @param <E> The kind of thrown exception or error.
|
* @param <E> The kind of thrown exception or error.
|
||||||
* @return The NOP singleton.
|
* @return The NOP singleton.
|
||||||
*/
|
*/
|
||||||
|
@SuppressWarnings("unchecked")
|
||||||
static <E extends Throwable> FailableIntToDoubleFunction<E> nop() {
|
static <E extends Throwable> FailableIntToDoubleFunction<E> nop() {
|
||||||
return NOP;
|
return NOP;
|
||||||
}
|
}
|
||||||
|
|
|
@ -38,6 +38,7 @@ public interface FailableIntToLongFunction<E extends Throwable> {
|
||||||
* @param <E> The kind of thrown exception or error.
|
* @param <E> The kind of thrown exception or error.
|
||||||
* @return The NOP singleton.
|
* @return The NOP singleton.
|
||||||
*/
|
*/
|
||||||
|
@SuppressWarnings("unchecked")
|
||||||
static <E extends Throwable> FailableIntToLongFunction<E> nop() {
|
static <E extends Throwable> FailableIntToLongFunction<E> nop() {
|
||||||
return NOP;
|
return NOP;
|
||||||
}
|
}
|
||||||
|
|
|
@ -48,6 +48,7 @@ public interface FailableIntUnaryOperator<E extends Throwable> {
|
||||||
* @param <E> The kind of thrown exception or error.
|
* @param <E> The kind of thrown exception or error.
|
||||||
* @return The NOP singleton.
|
* @return The NOP singleton.
|
||||||
*/
|
*/
|
||||||
|
@SuppressWarnings("unchecked")
|
||||||
static <E extends Throwable> FailableIntUnaryOperator<E> nop() {
|
static <E extends Throwable> FailableIntUnaryOperator<E> nop() {
|
||||||
return NOP;
|
return NOP;
|
||||||
}
|
}
|
||||||
|
|
|
@ -39,6 +39,7 @@ public interface FailableLongConsumer<E extends Throwable> {
|
||||||
* @param <E> The kind of thrown exception or error.
|
* @param <E> The kind of thrown exception or error.
|
||||||
* @return The NOP singleton.
|
* @return The NOP singleton.
|
||||||
*/
|
*/
|
||||||
|
@SuppressWarnings("unchecked")
|
||||||
static <E extends Throwable> FailableLongConsumer<E> nop() {
|
static <E extends Throwable> FailableLongConsumer<E> nop() {
|
||||||
return NOP;
|
return NOP;
|
||||||
}
|
}
|
||||||
|
|
|
@ -40,6 +40,7 @@ public interface FailableLongFunction<R, E extends Throwable> {
|
||||||
* @param <E> The kind of thrown exception or error.
|
* @param <E> The kind of thrown exception or error.
|
||||||
* @return The NOP singleton.
|
* @return The NOP singleton.
|
||||||
*/
|
*/
|
||||||
|
@SuppressWarnings("unchecked")
|
||||||
static <R, E extends Throwable> FailableLongFunction<R, E> nop() {
|
static <R, E extends Throwable> FailableLongFunction<R, E> nop() {
|
||||||
return NOP;
|
return NOP;
|
||||||
}
|
}
|
||||||
|
|
|
@ -43,6 +43,7 @@ public interface FailableLongPredicate<E extends Throwable> {
|
||||||
* @param <E> The kind of thrown exception or error.
|
* @param <E> The kind of thrown exception or error.
|
||||||
* @return The NOP singleton.
|
* @return The NOP singleton.
|
||||||
*/
|
*/
|
||||||
|
@SuppressWarnings("unchecked")
|
||||||
static <E extends Throwable> FailableLongPredicate<E> falsePredicate() {
|
static <E extends Throwable> FailableLongPredicate<E> falsePredicate() {
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
@ -53,6 +54,7 @@ public interface FailableLongPredicate<E extends Throwable> {
|
||||||
* @param <E> The kind of thrown exception or error.
|
* @param <E> The kind of thrown exception or error.
|
||||||
* @return The NOP singleton.
|
* @return The NOP singleton.
|
||||||
*/
|
*/
|
||||||
|
@SuppressWarnings("unchecked")
|
||||||
static <E extends Throwable> FailableLongPredicate<E> truePredicate() {
|
static <E extends Throwable> FailableLongPredicate<E> truePredicate() {
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
|
@ -38,6 +38,7 @@ public interface FailableLongToDoubleFunction<E extends Throwable> {
|
||||||
* @param <E> The kind of thrown exception or error.
|
* @param <E> The kind of thrown exception or error.
|
||||||
* @return The NOP singleton.
|
* @return The NOP singleton.
|
||||||
*/
|
*/
|
||||||
|
@SuppressWarnings("unchecked")
|
||||||
static <E extends Throwable> FailableLongToDoubleFunction<E> nop() {
|
static <E extends Throwable> FailableLongToDoubleFunction<E> nop() {
|
||||||
return NOP;
|
return NOP;
|
||||||
}
|
}
|
||||||
|
|
|
@ -38,6 +38,7 @@ public interface FailableLongToIntFunction<E extends Throwable> {
|
||||||
* @param <E> The kind of thrown exception or error.
|
* @param <E> The kind of thrown exception or error.
|
||||||
* @return The NOP singleton.
|
* @return The NOP singleton.
|
||||||
*/
|
*/
|
||||||
|
@SuppressWarnings("unchecked")
|
||||||
static <E extends Throwable> FailableLongToIntFunction<E> nop() {
|
static <E extends Throwable> FailableLongToIntFunction<E> nop() {
|
||||||
return NOP;
|
return NOP;
|
||||||
}
|
}
|
||||||
|
|
|
@ -48,7 +48,8 @@ public interface FailableLongUnaryOperator<E extends Throwable> {
|
||||||
* @param <E> The kind of thrown exception or error.
|
* @param <E> The kind of thrown exception or error.
|
||||||
* @return The NOP singleton.
|
* @return The NOP singleton.
|
||||||
*/
|
*/
|
||||||
static <E extends Throwable> FailableLongUnaryOperator<E> nop() {
|
@SuppressWarnings("unchecked")
|
||||||
|
static <E extends Throwable> FailableLongUnaryOperator<E> nop() {
|
||||||
return NOP;
|
return NOP;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -40,7 +40,8 @@ public interface FailableObjDoubleConsumer<T, E extends Throwable> {
|
||||||
* @param <E> The kind of thrown exception or error.
|
* @param <E> The kind of thrown exception or error.
|
||||||
* @return The NOP singleton.
|
* @return The NOP singleton.
|
||||||
*/
|
*/
|
||||||
static <T, E extends Throwable> FailableObjDoubleConsumer<T, E> nop() {
|
@SuppressWarnings("unchecked")
|
||||||
|
static <T, E extends Throwable> FailableObjDoubleConsumer<T, E> nop() {
|
||||||
return NOP;
|
return NOP;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -40,6 +40,7 @@ public interface FailableObjIntConsumer<T, E extends Throwable> {
|
||||||
* @param <E> The kind of thrown exception or error.
|
* @param <E> The kind of thrown exception or error.
|
||||||
* @return The NOP singleton.
|
* @return The NOP singleton.
|
||||||
*/
|
*/
|
||||||
|
@SuppressWarnings("unchecked")
|
||||||
static <T, E extends Throwable> FailableObjIntConsumer<T, E> nop() {
|
static <T, E extends Throwable> FailableObjIntConsumer<T, E> nop() {
|
||||||
return NOP;
|
return NOP;
|
||||||
}
|
}
|
||||||
|
|
|
@ -40,6 +40,7 @@ public interface FailableObjLongConsumer<T, E extends Throwable> {
|
||||||
* @param <E> The kind of thrown exception or error.
|
* @param <E> The kind of thrown exception or error.
|
||||||
* @return The NOP singleton.
|
* @return The NOP singleton.
|
||||||
*/
|
*/
|
||||||
|
@SuppressWarnings("unchecked")
|
||||||
static <T, E extends Throwable> FailableObjLongConsumer<T, E> nop() {
|
static <T, E extends Throwable> FailableObjLongConsumer<T, E> nop() {
|
||||||
return NOP;
|
return NOP;
|
||||||
}
|
}
|
||||||
|
|
|
@ -45,6 +45,7 @@ public interface FailablePredicate<T, E extends Throwable> {
|
||||||
* @param <E> The kind of thrown exception or error.
|
* @param <E> The kind of thrown exception or error.
|
||||||
* @return The NOP singleton.
|
* @return The NOP singleton.
|
||||||
*/
|
*/
|
||||||
|
@SuppressWarnings("unchecked")
|
||||||
static <T, E extends Throwable> FailablePredicate<T, E> falsePredicate() {
|
static <T, E extends Throwable> FailablePredicate<T, E> falsePredicate() {
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
@ -56,6 +57,7 @@ public interface FailablePredicate<T, E extends Throwable> {
|
||||||
* @param <E> The kind of thrown exception or error.
|
* @param <E> The kind of thrown exception or error.
|
||||||
* @return The NOP singleton.
|
* @return The NOP singleton.
|
||||||
*/
|
*/
|
||||||
|
@SuppressWarnings("unchecked")
|
||||||
static <T, E extends Throwable> FailablePredicate<T, E> truePredicate() {
|
static <T, E extends Throwable> FailablePredicate<T, E> truePredicate() {
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
|
@ -42,6 +42,7 @@ public interface FailableToDoubleBiFunction<T, U, E extends Throwable> {
|
||||||
* @param <E> The kind of thrown exception or error.
|
* @param <E> The kind of thrown exception or error.
|
||||||
* @return The NOP singleton.
|
* @return The NOP singleton.
|
||||||
*/
|
*/
|
||||||
|
@SuppressWarnings("unchecked")
|
||||||
static <T, U, E extends Throwable> FailableToDoubleBiFunction<T, U, E> nop() {
|
static <T, U, E extends Throwable> FailableToDoubleBiFunction<T, U, E> nop() {
|
||||||
return NOP;
|
return NOP;
|
||||||
}
|
}
|
||||||
|
|
|
@ -40,6 +40,7 @@ public interface FailableToDoubleFunction<T, E extends Throwable> {
|
||||||
* @param <E> The kind of thrown exception or error.
|
* @param <E> The kind of thrown exception or error.
|
||||||
* @return The NOP singleton.
|
* @return The NOP singleton.
|
||||||
*/
|
*/
|
||||||
|
@SuppressWarnings("unchecked")
|
||||||
static <T, E extends Throwable> FailableToDoubleFunction<T, E> nop() {
|
static <T, E extends Throwable> FailableToDoubleFunction<T, E> nop() {
|
||||||
return NOP;
|
return NOP;
|
||||||
}
|
}
|
||||||
|
|
|
@ -42,6 +42,7 @@ public interface FailableToIntBiFunction<T, U, E extends Throwable> {
|
||||||
* @param <E> The kind of thrown exception or error.
|
* @param <E> The kind of thrown exception or error.
|
||||||
* @return The NOP singleton.
|
* @return The NOP singleton.
|
||||||
*/
|
*/
|
||||||
|
@SuppressWarnings("unchecked")
|
||||||
static <T, U, E extends Throwable> FailableToIntBiFunction<T, U, E> nop() {
|
static <T, U, E extends Throwable> FailableToIntBiFunction<T, U, E> nop() {
|
||||||
return NOP;
|
return NOP;
|
||||||
}
|
}
|
||||||
|
|
|
@ -40,6 +40,7 @@ public interface FailableToIntFunction<T, E extends Throwable> {
|
||||||
* @param <E> The kind of thrown exception or error.
|
* @param <E> The kind of thrown exception or error.
|
||||||
* @return The NOP singleton.
|
* @return The NOP singleton.
|
||||||
*/
|
*/
|
||||||
|
@SuppressWarnings("unchecked")
|
||||||
static <T, E extends Throwable> FailableToIntFunction<T, E> nop() {
|
static <T, E extends Throwable> FailableToIntFunction<T, E> nop() {
|
||||||
return NOP;
|
return NOP;
|
||||||
}
|
}
|
||||||
|
|
|
@ -42,6 +42,7 @@ public interface FailableToLongBiFunction<T, U, E extends Throwable> {
|
||||||
* @param <E> The kind of thrown exception or error.
|
* @param <E> The kind of thrown exception or error.
|
||||||
* @return The NOP singleton.
|
* @return The NOP singleton.
|
||||||
*/
|
*/
|
||||||
|
@SuppressWarnings("unchecked")
|
||||||
static <T, U, E extends Throwable> FailableToLongBiFunction<T, U, E> nop() {
|
static <T, U, E extends Throwable> FailableToLongBiFunction<T, U, E> nop() {
|
||||||
return NOP;
|
return NOP;
|
||||||
}
|
}
|
||||||
|
|
|
@ -40,6 +40,7 @@ public interface FailableToLongFunction<T, E extends Throwable> {
|
||||||
* @param <E> The kind of thrown exception or error.
|
* @param <E> The kind of thrown exception or error.
|
||||||
* @return The NOP singleton.
|
* @return The NOP singleton.
|
||||||
*/
|
*/
|
||||||
|
@SuppressWarnings("unchecked")
|
||||||
static <T, E extends Throwable> FailableToLongFunction<T, E> nop() {
|
static <T, E extends Throwable> FailableToLongFunction<T, E> nop() {
|
||||||
return NOP;
|
return NOP;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue