public class LabelsSource extends Object implements Serializable
Constructor and Description |
---|
LabelsSource() |
LabelsSource(@NonNull List<String> labels)
Build LabelsSource using externally defined list of string labels.
|
LabelsSource(@NonNull String template)
Build LabelsSource using string template.
|
Modifier and Type | Method and Description |
---|---|
List<String> |
getLabels()
This method returns the list of labels used by this generator instance.
|
int |
getNumberOfLabelsUsed()
This method returns number of labels used up to the method's call
|
int |
indexOf(String label) |
String |
nextLabel()
Returns next label.
|
void |
reset()
This method should be called from Iterator's reset() method, to keep labels in sync with iterator
|
int |
size() |
void |
storeLabel(String label)
This method is intended for storing labels retrieved from external sources.
|
public LabelsSource()
public LabelsSource(@NonNull @NonNull String template)
template
- public int indexOf(String label)
public int size()
public String nextLabel()
public List<String> getLabels()
public void storeLabel(String label)
label
- public void reset()
public int getNumberOfLabelsUsed()
Copyright © 2021. All rights reserved.