Interface ValueObserver<T>

    • Method Detail

      • toOptional

        default Optional<T> toOptional()
        Returns:
        an Optional wrapping this value.
      • isNull

        default boolean isNull()
        Returns:
        true if the underlying value is null.
      • isNotNull

        default boolean isNotNull()
        Returns:
        true if the underlying value is not null.
      • isNullable

        boolean isNullable()
        If false then get() is guaranteed to never return null.
        Returns:
        true if this value can be null
      • equalTo

        default boolean equalTo​(T value)
        Returns true if the underlying value is equal to the given one. Note that null == null.
        Parameters:
        value - the value
        Returns:
        true if the underlying value is equal to the given one