public class MultiObjectSupplier extends java.lang.Object implements ResettableSupplier<java.lang.Object[]>
Constructor and Description |
---|
MultiObjectSupplier(ResettableSupplier<?>... resettableSuppliers) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
java.lang.Object[] |
get() |
int |
hashCode() |
void |
reset()
Resets the state of this supplier so that the next call to
get() returns as if it were the first time the method were called |
int |
skipToValues(java.lang.Object... values)
Skips this forward until it reaches the specified value array (which it will then return with the next get call).
|
java.lang.String |
toString() |
public MultiObjectSupplier(@NotNull ResettableSupplier<?>... resettableSuppliers)
public int skipToValues(java.lang.Object... values)
values
- The values to skip topublic final void reset()
ResettableSupplier
get()
returns as if it were the first time the method were calledreset
in interface ResettableSupplier<java.lang.Object[]>
@Nullable public java.lang.Object[] get()
get
in interface java.util.function.Supplier<java.lang.Object[]>
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object