Roke98

ILinkedList

Oct 30th, 2022 (edited)
974
-1
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.84 KB | None | 0 1
  1.  
  2. //
  3. //Created by Julio Tentor <[email protected]>
  4. //
  5.  
  6. //from https://docs.oracle.com/en/java/javase/15/docs/api/java.base/java/util/LinkedList.html
  7. public interface ILinkedList<ELEMENT> extends Iterable<ELEMENT> {
  8.  
  9.  // Returns the number of elements in this list.
  10.  public int size();
  11.  
  12.  // Inserts the specified element at the beginning of this list.
  13.  public void addFirst(ELEMENT item);
  14.  // Appends the specified element to the end of this list.
  15.  public void addLast(ELEMENT item);
  16.  // Removes and returns the first element from this list.
  17.  public ELEMENT removeFirst();
  18.  // Removes and returns the last element from this list.
  19.  public ELEMENT removeLast();
  20.  
  21.  public void addInOrder(ELEMENT item);
  22.  
  23.  public boolean search(Object object);
  24.  
  25.  public void addInOrderForVideoTitulo(Videos v);
  26.  
  27.  public ELEMENT get(int i);
  28.  
  29. }
Advertisement
Add Comment
Please, Sign In to add comment