public class ItemNameSupplier extends com.emc.mongoose.api.common.supply.BasicUpdatingValueSupplier<java.lang.String> implements IdStringInput
| Modifier and Type | Field and Description |
|---|---|
protected long |
lastValue |
protected int |
length |
protected long |
maxValue |
protected ItemNamingType |
namingType |
protected int |
prefixLength |
protected int |
radix |
protected java.lang.StringBuilder |
strb |
| Constructor and Description |
|---|
ItemNameSupplier(ItemNamingType namingType,
java.lang.String prefix,
int length,
int radix,
long offset) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
get()
Generate the next item name.
|
long |
getAsLong() |
close, get, reset, skipprotected final ItemNamingType namingType
protected final int length
protected final int prefixLength
protected final int radix
protected final long maxValue
protected final java.lang.StringBuilder strb
protected volatile long lastValue
public ItemNameSupplier(ItemNamingType namingType, java.lang.String prefix, int length, int radix, long offset) throws com.emc.mongoose.api.common.exception.OmgShootMyFootException
com.emc.mongoose.api.common.exception.OmgShootMyFootExceptionpublic java.lang.String get()
get in interface com.github.akurilov.commons.io.Input<java.lang.String>get in interface java.util.function.Supplier<java.lang.String>get in class com.emc.mongoose.api.common.supply.BasicUpdatingValueSupplier<java.lang.String>public final long getAsLong()
getAsLong in interface java.util.function.LongSupplier