Class GeneratorResult

java.lang.Object
org.instancio.internal.generator.GeneratorResult

public final class GeneratorResult extends Object
  • Method Details

    • nullResult

      public static GeneratorResult nullResult()
      This result indicates that 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 a null value.

      An actual null GeneratorResult means that the target field will be ignored (it would retain its default value, if any).

      Returns:
      null result
    • create

      public static GeneratorResult create(@Nullable @Nullable Object value, Hints hints)
    • getValue

      public Object getValue()
    • isNullResult

      public boolean isNullResult()
    • getHints

      public Hints getHints()
    • toString

      public String toString()
      Overrides:
      toString in class Object