Interface IWrapper<DATATYPE>

Type Parameters:
DATATYPE - The type of the wrapped object.
All Superinterfaces:
Supplier<DATATYPE>
All Known Subinterfaces:
IMutableWrapper<DATATYPE>
All Known Implementing Classes:
ChangeWithValue, SuccessWithValue, Wrapper
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 IWrapper<DATATYPE> extends Supplier<DATATYPE>
Base interface for wrapping an object within another object.
Author:
Philip Helger
  • Method Summary

    Modifier and Type
    Method
    Description
    get()
     
    default boolean
     
    default boolean
     
  • Method Details

    • get

      Specified by:
      get in interface Supplier<DATATYPE>
      Returns:
      The currently wrapped object. May be null.
    • isSet

      default boolean isSet()
      Returns:
      true if the contained value is not null, false if it is null.
    • isNotSet

      default boolean isNotSet()
      Returns:
      true if the contained value is null, false if it is not null.