T
- Return type.E
- The kind of thrown exception or error.@FunctionalInterface public interface FailableSupplier<T,E extends Throwable>
Modifier and Type | Field and Description |
---|---|
static FailableSupplier |
NUL
Returns the singleton supplier that always returns null.
|
Modifier and Type | Method and Description |
---|---|
T |
get()
Supplies an object
|
static <T,E extends Exception> |
nul()
Returns the singleton supplier that always returns null.
|
static final FailableSupplier NUL
This supplier never throws an exception.
static <T,E extends Exception> FailableSupplier<T,E> nul()
This supplier never throws an exception.
T
- Supplied type.E
- The kind of thrown exception or error.Copyright © 2001–2023 The Apache Software Foundation. All rights reserved.