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

public class ListCompatWrapper_Java_21 extends ListCompatWrapper_Java_17
  • Constructor Details

    • ListCompatWrapper_Java_21

      public ListCompatWrapper_Java_21()
  • Method Details

    • getFirst

      public <T> T getFirst(List<T> list)
      Description copied from interface: ListCompatWrapper
      Gets 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

      public <T> T getLast(List<T> list)
      Description copied from interface: ListCompatWrapper
      Gets 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

      public <T> T removeFirst(List<T> list)
      Description copied from interface: ListCompatWrapper
      Removes 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

      public <T> T removeLast(List<T> list)
      Description copied from interface: ListCompatWrapper
      Removes 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