Class Copy


  • public class Copy
    extends Object
    Creates copies of the data.
    Author:
    FracPete (fracpete at waikato dot ac dot nz)
    • Constructor Detail

      • Copy

        public Copy()
    • Method Detail

      • copyData

        public static <T> List<Binnable<T>> copyData​(List<Binnable<T>> data,
                                                     Copy.CopyType type)
        Generates a copy.
        Type Parameters:
        T - the payload type
        Parameters:
        data - the list to copy
        type - the type of copy to perform
        Returns:
        the generated copy
      • copyBins

        public static <T> List<Bin<T>> copyBins​(List<Bin<T>> bins,
                                                Copy.CopyType type)
        Generates a copy.
        Type Parameters:
        T - the payload type
        Parameters:
        bins - the bins to copy
        type - the type of copy to perform
        Returns:
        the generated copy