Class GeneratorResult

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

public final class GeneratorResult extends Object
  • Method Details

    • create

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

      public Object getValue()
    • getHints

      public Hints getHints()
    • nullResult

      public static GeneratorResult 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

      public static GeneratorResult emptyResult()
      An empty result implies that a value could not be generated. This could be due to an error.
      Returns:
      empty result
    • ignoredResult

      public static GeneratorResult ignoredResult()
      An ignored result indicates that the target was marked with InstancioApi.ignore(TargetSelector).
      Returns:
      ignored result
    • hasEmitNullHint

      public boolean hasEmitNullHint()
    • containsNull

      public boolean containsNull()
    • isEmpty

      public boolean isEmpty()
    • isIgnored

      public boolean isIgnored()
    • toString

      public String toString()
      Overrides:
      toString in class Object