cc.redberry.core.indexgenerator
Class IndexGeneratorFromData
- java.lang.Object
-
- cc.redberry.core.indexgenerator.IndexGeneratorFromData
-
- All Implemented Interfaces:
- IndexGenerator
public final class IndexGeneratorFromData extends java.lang.Object implements IndexGenerator
Returns distinct indices only from the allowed set of indices and produces exception if no more allowed indices exist.
-
-
Constructor Summary
Constructors Constructor and Description IndexGeneratorFromData(int[] allowedIndices)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description intgenerate(byte type)Generates new index of a particular type.
-
-
-
Method Detail
-
generate
public int generate(byte type)
Generates new index of a particular type.- Specified by:
generatein interfaceIndexGenerator- Parameters:
type- index type- Returns:
- new index of a particular type
- Throws:
java.lang.IndexOutOfBoundsException- if no more allowed indices exist
-
-
DataMelt 3.0 © DataMelt by jWork.ORG