public static interface Value.BuilderFactory
Provides
Value.Builder instances for nullable or non-nullable values.-
Method Summary
Modifier and TypeMethodDescription<T> Value.Builder<T, ?> nonNull(T nullValue) <T> Value.Builder<T, ?> nullable()<T> Value.Builder<T, ?>
-
Method Details
-
nonNull
- 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
- Type Parameters:
T- the value type- Returns:
- a builder for a nullable
Value
-
nullable
- Type Parameters:
T- the value type- Parameters:
value- the initial value- Returns:
- a builder for a nullable
Value
-