title: What is the use of the position interface in the Linked list implementations?
body: <p>I do not see the use of the interface,
  why can't we directly implement the getElement() method directly in the Node Class?</p>
  
  <pre><code>public interface Position &lt;T&gt; {
  public T getElement();
  }
  </code></pre>
  
  <p>Hereby the SNODE class:</p>
  
  <pre><code>public class SNode&lt;T&gt; implements Position&lt;T&gt; {
  
  private T element;
  private SNode&lt;T&gt; next;
  
  public SNode(T e, SNode&lt;T&gt; n) {
      element = e;
      next = n;
  }
  
  public SNode&lt;T&gt; getNext() {
      return next;
  }
  
  public void setNext(SNode&lt;T&gt; next) {
      this.next = next;
  }
  
  public void setElement(T element) {
      this.element = element;
  }
  
  @Override
  public T getElement() {
      return element;
  }
  }
  </code></pre>