Package org.instancio

Class Result<T>

java.lang.Object
org.instancio.Result<T>
Type Parameters:
T - result type

public final class Result<T> extends Object
A result containing a created object and seed that was used for populating its values.
Since:
1.5.1
  • Constructor Details

    • Result

      public Result(@Nullable T object, long seed)
  • Method Details

    • get

      public T get()
      Returns the created object.
      Returns:
      created object
      Since:
      1.5.1
    • getSeed

      public long getSeed()
      Returns the seed that was used to populate the created object.
      Returns:
      the seed
      Since:
      1.5.1
    • toString

      public String toString()
      Overrides:
      toString in class Object