All pastes #2093189 Raw Edit

Unnamed

public java v1 · immutable
#2093189 ·published 2011-11-08 21:48 UTC
rendered paste body
package PA4;public class Node {	Investment identifier;	double value;	boolean isRoot;	Node left;	Node right;	public Node() {		this.setIdentifier(null);	}		public Node(double value) {		this.setValue(value);	}		public Node(Investment identifier) {		this.setIdentifier(identifier);		this.setValue(identifier.getValue());	}	public Investment getIdentifier() {		return this.identifier;	}	public void setIdentifier(Investment investment) {		this.identifier = investment;	}	public double getValue() {		return this.value;	}	public void setValue(double value) {		this.value = value;	}	public Node getLeft() {		return this.left;	}	public boolean isRoot() {		return isRoot;	}	public void setRoot(boolean isRoot) {		this.isRoot = isRoot;	}	public void setLeft(Node toLeft) {		this.left = toLeft;	}	public Node getRight() {		return this.right;	}	public void setRight(Node toRight) {		this.right = toRight;	}}