Package org.instancio.internal.generator
Class GeneratorResult
java.lang.Object
org.instancio.internal.generator.GeneratorResult
-
Method Summary
Modifier and TypeMethodDescriptionboolean
static GeneratorResult
static GeneratorResult
An empty result implies that a value could not be generated.getHints()
getValue()
boolean
static GeneratorResult
An ignored result indicates that the target was marked withInstancioApi.ignore(TargetSelector)
.boolean
isEmpty()
boolean
static GeneratorResult
A null was generated, therefore the target's value should be set to null.toString()
-
Method Details
-
create
-
getValue
-
getHints
-
nullResult
A null was generated, therefore the target's value should be set to null. If the target is a field with a pre-initialised default value, it will be overwritten with null.- Returns:
- null result
-
emptyResult
An empty result implies that a value could not be generated. This could be due to an error.- Returns:
- empty result
-
ignoredResult
An ignored result indicates that the target was marked withInstancioApi.ignore(TargetSelector)
.- Returns:
- ignored result
-
hasEmitNullHint
public boolean hasEmitNullHint() -
containsNull
public boolean containsNull() -
isEmpty
public boolean isEmpty() -
isIgnored
public boolean isIgnored() -
toString
-