Class RecordsImpl<T>

  • Type Parameters:
    T - The type managed by the Records.
    All Implemented Interfaces:
    java.lang.Cloneable, java.util.Iterator<Record<? extends T>>, Records<T>

    public class RecordsImpl<T>
    extends java.lang.Object
    implements Records<T>, java.lang.Cloneable
    Implementation of the Records interface being Cloneable.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object clone()
      boolean hasNext()
      Record<? extends T> next()
      void remove()
      • Methods inherited from interface java.util.Iterator

        forEachRemaining
      • Methods inherited from class java.lang.Object

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

      • RecordsImpl

        public RecordsImpl​(java.util.Collection<Record<? extends T>> aRecords)
        Constructs the RecordsImpl instance configured with the provided Record instances.
        Parameters:
        aRecords - The Collection with the Record instances to be contained in the RecordsImpl .
      • RecordsImpl

        @SafeVarargs
        public RecordsImpl​(Record<? extends T>... aRecords)
        Constructs the RecordsImpl instance configured with the provided Record instances.
        Parameters:
        aRecords - The array with the Record instances to be contained in the RecordsImpl .
    • Method Detail

      • hasNext

        public boolean hasNext()
        Specified by:
        hasNext in interface java.util.Iterator<T>
      • next

        public Record<? extends T> next()
        Specified by:
        next in interface java.util.Iterator<T>
      • remove

        public void remove()
        Specified by:
        remove in interface java.util.Iterator<T>
      • clone

        public java.lang.Object clone()
                               throws java.lang.CloneNotSupportedException
        Overrides:
        clone in class java.lang.Object
        Throws:
        java.lang.CloneNotSupportedException