public class UnitValueBoxPair
extends java.lang.Object
Constructor and Description |
---|
UnitValueBoxPair(Unit unit,
ValueBox valueBox)
Constructs a UnitValueBoxPair form a Unit object and a ValueBox object.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object other)
Two UnitValueBoxPairs are equal iff they the Unit they hold are 'equal' and
the ValueBoxes they hold are 'equal'.
|
Unit |
getUnit() |
ValueBox |
getValueBox() |
int |
hashCode() |
java.lang.String |
toString() |
public boolean equals(java.lang.Object other)
equals
in class java.lang.Object
other
- another UnitValueBoxPairpublic int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public Unit getUnit()
public ValueBox getValueBox()