Class LinkedArrayListsComparator<T>

java.lang.Object
com.serov.Comparators.LinkedArrayListsComparator<T>

public class LinkedArrayListsComparator<T> extends Object
Comparator implementation
Author:
n.a.serov
  • Constructor Details

    • LinkedArrayListsComparator

      public LinkedArrayListsComparator()
      Default constructor without parameters
  • Method Details

    • compareInsertFirst

      public List compareInsertFirst()
      A method for comparing adding elements to the beginning
      Returns:
      Returns the quicker List
    • compareInsertMid

      public List compareInsertMid()
      A method for comparing adding elements to the middle
      Returns:
      Returns the quicker List
    • compareAdd

      public List compareAdd()
      A method for comparing adding elements to the end
      Returns:
      Returns the quicker List
    • compareRemoveFirst

      public List compareRemoveFirst()
      A method for comparing removing elements from the beginning
      Returns:
      Returns the quicker List
    • compareRemoveMid

      public List compareRemoveMid()
      A method for comparing removing elements from the middle
      Returns:
      Returns the quicker List
    • compareRemoveLast

      public List compareRemoveLast()
      A method for comparing removing elements from the end
      Returns:
      Returns the quicker List
    • compareGetFirst

      public List compareGetFirst()
      A method for comparing getting elements from the beginning
      Returns:
      Returns the quicker List
    • compareGetMid

      public List compareGetMid()
      A method for comparing getting elements from the middle
      Returns:
      Returns the quicker List
    • compareGetLast

      public List compareGetLast()
      A method for comparing getting elements from the end
      Returns:
      Returns the quicker List
    • compareSetFirst

      public List compareSetFirst()
      A method for comparing setting elements from the beginning
      Returns:
      Returns the quicker List
    • compareSetMid

      public List compareSetMid()
      A method for comparing setting elements from the middle
      Returns:
      Returns the quicker List
    • compareSetLast

      public List compareSetLast()
      A method for comparing setting elements from the end
      Returns:
      Returns the quicker List
    • compareAndPrintInsertFirst

      public void compareAndPrintInsertFirst()
      A method for comparing adding elements to the beginning and printing the result
    • compareAndPrintInsertMid

      public void compareAndPrintInsertMid()
      A method for comparing adding elements to the middle and printing the result
    • compareAndPrintAdd

      public void compareAndPrintAdd()
      A method for comparing adding elements to the end and printing the result
    • compareAndPrintRemoveFirst

      public void compareAndPrintRemoveFirst()
      A method for comparing removing elements from the beginning and printing the result
    • compareAndPrintRemoveMid

      public void compareAndPrintRemoveMid()
      A method for comparing removing elements from the middle and printing the result
    • compareAndPrintRemoveLast

      public void compareAndPrintRemoveLast()
      A method for comparing removing elements from the end and printing the result
    • compareAndPrintGetFirst

      public void compareAndPrintGetFirst()
      A method for comparing getting elements from the beginning and printing the result
    • compareAndPrintGetMid

      public void compareAndPrintGetMid()
      A method for comparing getting elements from the middle and printing the result
    • compareAndPrintGetLast

      public void compareAndPrintGetLast()
      A method for comparing getting elements from the end and printing the result
    • compareAndPrintSetFirst

      public void compareAndPrintSetFirst()
      A method for comparing setting elements from the beginning and printing the result
    • compareAndPrintSetMid

      public void compareAndPrintSetMid()
      A method for comparing setting elements from the middle and printing the result
    • compareAndPrintSetLast

      public void compareAndPrintSetLast()
      A method for comparing setting elements from the end and printing the result
    • compareAndPrint

      public void compareAndPrint()
      A method for comparing all methods and printing the results