net.sf.farrago.fennel.calc
Class CalcProgramBuilder.LiteralPair

java.lang.Object
  extended by net.sf.farrago.fennel.calc.CalcProgramBuilder.LiteralPair
Enclosing class:
CalcProgramBuilder

private static class CalcProgramBuilder.LiteralPair
extends Object

A key-value pair class to hold
1) Value of a literal and
2) Type of a literal
For use in a hashtable


Field Summary
(package private)  CalcProgramBuilder.OpType type
           
(package private)  Object value
           
 
Constructor Summary
CalcProgramBuilder.LiteralPair(CalcProgramBuilder.OpType type, Object value)
           
 
Method Summary
 boolean equals(Object o)
           
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

type

CalcProgramBuilder.OpType type

value

Object value
Constructor Detail

CalcProgramBuilder.LiteralPair

CalcProgramBuilder.LiteralPair(CalcProgramBuilder.OpType type,
                               Object value)
"Precondition:"
type!=null
Method Detail

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object o)
Overrides:
equals in class Object