Package org.instancio.generator
Class Hints
java.lang.Object
org.instancio.generator.Hints
Hints are provided by
Generator
implementations to the engine to
support more flexibility in how objects are populated.- Since:
- 2.0.0
- See Also:
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns the after generate action to be performed by the engine.static Hints
afterGenerate
(AfterGenerate afterGenerate) Returns an instance of hints containing the specifiedAfterGenerate
value.static Hints.Builder
builder()
Returns an instance of the builder.static Hints.Builder
<T extends Hint<T>>
TReturns a hint with the specified type.toString()
-
Method Details
-
afterGenerate
Returns an instance of hints containing the specifiedAfterGenerate
value.- Parameters:
afterGenerate
- the action to be performed after generate- Returns:
- an instance containing a single hint
AfterGenerate.POPULATE_NULLS
- Since:
- 2.0.0
- See Also:
-
builder
-
afterGenerate
Returns the after generate action to be performed by the engine.- Returns:
- after generate action to perform
- Since:
- 2.0.0
- See Also:
-
get
Returns a hint with the specified type.- Type Parameters:
T
- hint type- Parameters:
hintType
- type of the hint- Returns:
- hint with the specified type, or
null
if none found - Since:
- 2.0.0
-
builder
Returns an instance of the builder.- Returns:
- builder
-
toString
-