Hallo Community,
wie werde ich besser im Verständnis von vorgegeben Klassen, von denen ich die Methoden implementieren muss?
Ich habe schon ein ungefähres Verständnis, um was es geht aber ich kann mir z.b. bei
public T getElement();
soll nach dem return this.Node; stehen?
public interface ILinkedListNode<T extends Comparable<T>> {
/*
* Returns the element stored in the node
*
* @return element stored in the node
*/
public T getElement();
/*
* Set element of the node
*
* @param element element to be stored
*/
public void setElement(T element);
/*
* Returns the next node
*
* @return the next node
*/
public ILinkedListNode<T> getNext();
/*
* Set the reference to the next node
*
* @param next the next node
*/
Grüße