Package com.serov.Comparators
Class LinkedArrayListsComparator<T>
java.lang.Object
com.serov.Comparators.LinkedArrayListsComparator<T>
Comparator implementation
- Author:
- n.a.serov
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionA method for comparing adding elements to the endvoidA method for comparing all methods and printing the resultsvoidA method for comparing adding elements to the end and printing the resultvoidA method for comparing getting elements from the beginning and printing the resultvoidA method for comparing getting elements from the end and printing the resultvoidA method for comparing getting elements from the middle and printing the resultvoidA method for comparing adding elements to the beginning and printing the resultvoidA method for comparing adding elements to the middle and printing the resultvoidA method for comparing removing elements from the beginning and printing the resultvoidA method for comparing removing elements from the end and printing the resultvoidA method for comparing removing elements from the middle and printing the resultvoidA method for comparing setting elements from the beginning and printing the resultvoidA method for comparing setting elements from the end and printing the resultvoidA method for comparing setting elements from the middle and printing the resultA method for comparing getting elements from the beginningA method for comparing getting elements from the endA method for comparing getting elements from the middleA method for comparing adding elements to the beginningA method for comparing adding elements to the middleA method for comparing removing elements from the beginningA method for comparing removing elements from the endA method for comparing removing elements from the middleA method for comparing setting elements from the beginningA method for comparing setting elements from the endA method for comparing setting elements from the middle
-
Constructor Details
-
LinkedArrayListsComparator
public LinkedArrayListsComparator()Default constructor without parameters
-
-
Method Details
-
compareInsertFirst
A method for comparing adding elements to the beginning- Returns:
- Returns the quicker List
-
compareInsertMid
A method for comparing adding elements to the middle- Returns:
- Returns the quicker List
-
compareAdd
A method for comparing adding elements to the end- Returns:
- Returns the quicker List
-
compareRemoveFirst
A method for comparing removing elements from the beginning- Returns:
- Returns the quicker List
-
compareRemoveMid
A method for comparing removing elements from the middle- Returns:
- Returns the quicker List
-
compareRemoveLast
A method for comparing removing elements from the end- Returns:
- Returns the quicker List
-
compareGetFirst
A method for comparing getting elements from the beginning- Returns:
- Returns the quicker List
-
compareGetMid
A method for comparing getting elements from the middle- Returns:
- Returns the quicker List
-
compareGetLast
A method for comparing getting elements from the end- Returns:
- Returns the quicker List
-
compareSetFirst
A method for comparing setting elements from the beginning- Returns:
- Returns the quicker List
-
compareSetMid
A method for comparing setting elements from the middle- Returns:
- Returns the quicker 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
-