Interface Value.BuilderFactory

Enclosing interface:
Value<T>

public static interface Value.BuilderFactory
Provides Value.Builder instances for nullable or non-nullable values.
  • Method Details

    • nonNull

      <T> Value.Builder<T,?> nonNull(T nullValue)
      Type Parameters:
      T - the value type
      Parameters:
      nullValue - the actual value to use when the value is set to null, also serves as the initial value
      Returns:
      a builder for a non-null Value
    • nullable

      <T> Value.Builder<T,?> nullable()
      Type Parameters:
      T - the value type
      Returns:
      a builder for a nullable Value
    • nullable

      <T> Value.Builder<T,?> nullable(T value)
      Type Parameters:
      T - the value type
      Parameters:
      value - the initial value
      Returns:
      a builder for a nullable Value