public class CharacterSupplier extends java.lang.Object implements ResettableSupplier<java.lang.String>
Constructor and Description |
---|
CharacterSupplier(char start,
char end)
Creates a new Character Supplier that returns strings of length 1
|
CharacterSupplier(char start,
char end,
int returnLength)
Creates a new Character Supplier
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
java.lang.String |
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 |
java.lang.String |
toString() |
public CharacterSupplier(char start, char end)
start
- The first character to use (inclusive)end
- The last character to use (inclusive)public CharacterSupplier(char start, char end, int returnLength)
start
- The first character to use (inclusive)end
- The last character to use (inclusive)returnLength
- How many characters to return in each stringpublic final void reset()
ResettableSupplier
get()
returns as if it were the first time the method were calledreset
in interface ResettableSupplier<java.lang.String>
@Nullable public java.lang.String get()
get
in interface java.util.function.Supplier<java.lang.String>
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