sub_arctic.constraints
Class consumer_part_ref

java.lang.Object
  |
  +--sub_arctic.constraints.consumer_part_ref

public class consumer_part_ref
extends java.lang.Object

A small class to encapsulate a pair.


Field Summary
 value_consumer obj
          The consumer object.
 int part_num
          The part number of that object that we refer to
 
Constructor Summary
consumer_part_ref(value_consumer o, int pn)
          Constructor.
 
Method Summary
 boolean equals(java.lang.Object other)
          Comparison operator.
 int hashCode()
          Hash code so we can put these in hash tables.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

obj

public value_consumer obj
The consumer object.

part_num

public int part_num
The part number of that object that we refer to
Constructor Detail

consumer_part_ref

public consumer_part_ref(value_consumer o,
                         int pn)
Constructor.
Parameters:
value_consumer - o the object consuming the value
int - pn the part within that object that makes use of the value
Method Detail

hashCode

public int hashCode()
Hash code so we can put these in hash tables.
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object other)
Comparison operator.
Overrides:
equals in class java.lang.Object