jtentor icon

LinkedList 1er parte - ILinkedList.java

jtentor | PRO | 10/17/20 11:50:57 AM UTC | 0 ⭐ | 2039 👁️ | Never ⏰ | []
Java |

700 B

|

None

|

0 👍

/

0 👎

//
// Created by Julio Tentor <[email protected]>
//
 
// from https://docs.oracle.com/en/java/javase/15/docs/api/java.base/java/util/LinkedList.html
public interface ILinkedList<ELEMENT> extends Iterable<ELEMENT> {
 
    // Returns the number of elements in this list.
    public int size();
 
    // Inserts the specified element at the beginning of this list.
    public void addFirst(ELEMENT item);
    // Appends the specified element to the end of this list.
    public void addLast(ELEMENT item);
    // Removes and returns the first element from this list.
    public ELEMENT removeFirst();
    // Removes and returns the last element from this list.
    public ELEMENT removeLast();
 
}
 

Comments