SHARE
TWEET

Untitled

a guest Oct 23rd, 2019 88 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. package aiz.list;
  3.  
  4. public class ElemTwo<T> {
  5.     private T data;
  6.     private ElemTwo<T> next, prev;
  7.  
  8.     public ElemTwo(T data) {
  9.         this.data = data;
  10.     }
  11.  public ElemTwo(T data, ElemTwo<T> next) {
  12.         this.data = data;
  13.         this.next = next;
  14.     }
  15.     public ElemTwo(T data, ElemTwo<T> next, ElemTwo<T> prev) {
  16.         this.data = data;
  17.         this.next = next;
  18.         this.prev=prev;
  19.     }
  20.  
  21.     public T getData() {
  22.         return data;
  23.     }
  24.  
  25.     public void setData(T data) {
  26.         this.data = data;
  27.     }
  28.  
  29.     public ElemTwo<T> getNext() {
  30.         return next;
  31.     }
  32.  
  33.     public void setNext(ElemTwo<T> next) {
  34.         this.next = next;
  35.     }
  36.    
  37.     /////////////////dwukierunkowa lista
  38.         public ElemTwo<T> getPrev() {
  39.         return prev;
  40.     }
  41.  
  42.     public void setPrev(ElemTwo<T> prev) {
  43.         this.prev = prev;
  44.     }
  45. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top