Interface RecipeOptional<T>
- All Known Subinterfaces:
RecipeOptional.Unit<T>
- All Known Implementing Classes:
RecipeOptional.Constant,RecipeOptional.Unit.Impl
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final recordDeprecated.static interface -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiondefault TGets a value that is used duringdata generationof recipe schema JSONs, as well as during debugging of recipe constructors.default booleanstatic <T> RecipeOptional<T> unit(T value)
-
Field Details
-
DEFAULT
-
-
Method Details
-
getDefaultValue
-
getInformativeValue
Gets a value that is used duringdata generationof recipe schema JSONs, as well as during debugging of recipe constructors.This needs to be implemented if you intend to use data generation with a custom optional type
-
isDefault
default boolean isDefault() -
unit
-
invalid reference