APL/DEV 3.2/TP03/Luminance/ChainLink.java
2022-10-21 16:11:26 +02:00

28 lines
430 B
Java

/**
* ChainLink
*/
public class ChainLink<T> {
private T value;
private ChainLink<T> next;
public ChainLink(T t) {
this.value = t;
}
public T getValue() {
return value;
}
public void setValue(T value) {
this.value = value;
}
public ChainLink<T> getNext() {
return next;
}
public void setNext(ChainLink<T> next) {
this.next = next;
}
}