26 lines
369 B
Java
26 lines
369 B
Java
|
public class Chaine<E> {
|
||
|
|
||
|
public Chaine() {
|
||
|
|
||
|
}
|
||
|
|
||
|
private E value;
|
||
|
private Chaine<E> next;
|
||
|
|
||
|
public E getValue() {
|
||
|
return value;
|
||
|
}
|
||
|
|
||
|
public void setValue(E value) {
|
||
|
this.value = value;
|
||
|
}
|
||
|
|
||
|
public Chaine<E> getNext() {
|
||
|
return next;
|
||
|
}
|
||
|
|
||
|
public void setNext(Chaine<E> next) {
|
||
|
this.next = next;
|
||
|
}
|
||
|
}
|