-
- Type Parameters:
S- storage typeV- value type
- All Known Subinterfaces:
AdaptedKeyValue<S,K,O,V>,AdaptedValue<S,O,V>,DefaultAdaptedKeyValue<S,K,O,V>,DefaultAdaptedValue<S,O,V>,DefaultGetter<S,V>,DefaultKeyValue<S,K,V>,DefaultValue<S,V>,KeyValue<S,K,V>,Value<S,V>
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface Getter<S,V>
Gets a possible value from storage.
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description Optional<V>get(S storage)Gets the possible value from storage.static <S,V>
Getter<S,V>maybe(Function<S,@NullOr V> getter)Converts a direct getter into an optional getter.
-