tree
Class Node.Mul

java.lang.Object
  |
  +--java.lang.Number
        |
        +--tree.Node
              |
              +--tree.Node.Binary
                    |
                    +--tree.Node.Mul
Enclosing class:
Node

public static class Node.Mul
extends Node.Binary

implements multiplication.

See Also:
Serialized Form

Inner classes inherited from class tree.Node
Node.Add, Node.Binary, Node.Div, Node.Minus, Node.Mul, Node.Sub, Node.Unary
 
Fields inherited from class tree.Node.Binary
left, right
 
Constructor Summary
Node.Mul(java.lang.Number left, java.lang.Number right)
          builds a node with two subtrees.
 
Method Summary
 double doubleValue()
          implements double multiplication.
 long longValue()
          implements long multiplication.
 
Methods inherited from class tree.Node
byteValue, floatValue, intValue, shortValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Node.Mul

public Node.Mul(java.lang.Number left,
                java.lang.Number right)
builds a node with two subtrees.
Parameters:
left - left subtree.
right - right subtree.
Method Detail

longValue

public long longValue()
implements long multiplication.
Overrides:
longValue in class java.lang.Number
Returns:
product of subtree values.

doubleValue

public double doubleValue()
implements double multiplication.
Overrides:
doubleValue in class java.lang.Number
Returns:
product of subtree values.