Class ListCompatWrapper_Java_21
java.lang.Object
net.thomilist.dimensionalinventories.compatibility.java.collection.ListCompatWrapper_Java_17
net.thomilist.dimensionalinventories.compatibility.java.collection.ListCompatWrapper_Java_21
- All Implemented Interfaces:
CompatWrapper,ListCompatWrapper
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T> TGets the first element of a list.<T> TGets the last element of a list.<T> TremoveFirst(List<T> list) Removes and returns the first element of a list.<T> TremoveLast(List<T> list) Removes and returns the last element of a list.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.thomilist.dimensionalinventories.compatibility.CompatWrapper
onServerStarted
-
Constructor Details
-
ListCompatWrapper_Java_21
public ListCompatWrapper_Java_21()
-
-
Method Details
-
getFirst
Description copied from interface:ListCompatWrapperGets the first element of a list.- Type Parameters:
T- the type of elements in the list- Parameters:
list- the list to get the first element from- Returns:
- the retrieved element
-
getLast
Description copied from interface:ListCompatWrapperGets the last element of a list.- Type Parameters:
T- the type of elements in the list- Parameters:
list- the list to get the last element from- Returns:
- the retrieved element
-
removeFirst
Description copied from interface:ListCompatWrapperRemoves and returns the first element of a list.- Type Parameters:
T- the type of elements in the list- Parameters:
list- the list to remove the first element from- Returns:
- the removed element
-
removeLast
Description copied from interface:ListCompatWrapperRemoves and returns the last element of a list.- Type Parameters:
T- the type of elements in the list- Parameters:
list- the list to remove the last element from- Returns:
- the removed element
-