Class RecordsImpl<T>

  • Type Parameters:
    T - The type managed by the Records.
    All Implemented Interfaces:
    java.lang.Cloneable, java.lang.Iterable<T>, java.util.Iterator<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<T> next​()
      void remove​()
      • Methods inherited from interface java.lang.Iterable

        forEach, spliterator
      • 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<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<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<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