Documentation of 'cc.redberry.core.indexgenerator.IndexGeneratorFromData' Java class
IndexGeneratorFromData
cc.redberry.core.indexgenerator

Class 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.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      int generate(byte type)
      Generates new index of a particular type.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • IndexGeneratorFromData

        public IndexGeneratorFromData(int[] allowedIndices)
    • Method Detail

      • generate

        public int generate(byte type)
        Generates new index of a particular type.
        Specified by:
        generate in interface IndexGenerator
        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

Ads help maintain this website.