Class GeneratorImpl

  • All Implemented Interfaces:
    Generator

    public class GeneratorImpl
    extends Object
    implements Generator
    Represents a store sequence.
    Since:
    0.4.1
    Author:
    Abe White
    • Method Detail

      • next

        public Object next()
        Description copied from interface: Generator
        The next sequence value.
        Specified by:
        next in interface Generator
      • current

        public Object current()
        Description copied from interface: Generator
        The current sequence value, or null if the sequence does not support current values.
        Specified by:
        current in interface Generator
      • allocate

        public void allocate​(int additional)
        Description copied from interface: Generator
        Hint to the sequence to allocate additional values up-front for efficiency.
        Specified by:
        allocate in interface Generator
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object