Constructor and Description |
---|
Quantum(Datum d)
Create a quantum that is a known datum
|
Quantum(java.lang.String x)
Create a quantum that is an unknown
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
Datum |
getDatum() |
java.lang.String |
getId() |
int |
hashCode() |
java.lang.String |
toString() |
public Quantum(java.lang.String x) throws NullQuantumException
x
- the identifier of the unknownNullQuantumException
public Quantum(Datum d) throws NullQuantumException
d
- the known datumNullQuantumException
public java.lang.String getId()
public Datum getDatum()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object