Advertisement
Guest User

NodeImpl

a guest
Apr 22nd, 2018
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.45 KB | None | 0 0
  1. package cz.cvut.fel.pjv;
  2.  
  3. public class NodeImpl {
  4.  
  5.     private int value;
  6.     private Node left;
  7.     private Node right;
  8.  
  9.     public NodeImpl(int value, Node left, Node right)  {
  10.         this.value = value;
  11.         this.left = left;
  12.         this.right = right;
  13.     }
  14.  
  15.     public Node getLeft(){
  16.         return left;
  17.     }
  18.  
  19.     public Node getRight(){
  20.         return right;
  21.     }
  22.  
  23.     public int getValue(){
  24.         return value;
  25.     }
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement