Package org.instancio

Interface Result<T>

Type Parameters:
T - the result type

public interface Result<T>
A result containing a created object and seed that was used for populating its values. A result can be obtained by calling the InstancioApi.asResult() method.

Example:


 Result<Person> result = Instancio.of(Person.class)
     .set(field(Person::getName), "Homer Simpson")
     .asResult();

 Person person = result.get();
 long seed = result.getSeed();
 
Since:
1.5.1