jasi.sim.basic.table
Class ConditionTree.Line

java.lang.Object
  extended by jasi.sim.basic.table.ConditionTree.Line
All Implemented Interfaces:
java.io.Serializable
Enclosing class:
ConditionTree

public static final class ConditionTree.Line
extends java.lang.Object
implements java.io.Serializable

Line in a condition table.

See Also:
Serialized Form

Constructor Summary
ConditionTree.Line()
          Create a line.
ConditionTree.Line(java.lang.Object[] keys, java.lang.Object[] values)
          Create a line.
 
Method Summary
 boolean equals(java.lang.Object o)
          Indicates, whether some other object is "equal to" this one.
 java.lang.Object getKey(int part)
          Get key.
 java.lang.Object[] getKeys()
          Get a copy of keys.
 java.lang.Object[] getValues()
          Get a copy of this values.
 java.lang.Object getValues(int part)
          Get value.
 int hashCode()
          Returns the hash code value for this assignable object.
 void setKeys(int part, java.lang.Object key)
          Set key of a given index.
 void setKeys(java.lang.Object[] keys)
          Set the keys of this table.
 void setValues(int part, java.lang.Object value)
          Set value.
 void setValues(java.lang.Object[] values)
          Set the values.
 java.lang.String toString()
          Returns a string representation of this table.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ConditionTree.Line

public ConditionTree.Line()
Create a line.


ConditionTree.Line

public ConditionTree.Line(java.lang.Object[] keys,
                          java.lang.Object[] values)
Create a line.

Parameters:
keys - The keys.
values - The values.
Method Detail

setKeys

public void setKeys(java.lang.Object[] keys)
Set the keys of this table.

Parameters:
keys - The keys.

setKeys

public void setKeys(int part,
                    java.lang.Object key)
Set key of a given index.

Parameters:
part - The index.
key - The key.

getKeys

public java.lang.Object[] getKeys()
Get a copy of keys.

Returns:
The keys.

getKey

public java.lang.Object getKey(int part)
Get key.

Parameters:
part - The index.
Returns:
The key.

setValues

public void setValues(java.lang.Object[] values)
Set the values.

Parameters:
values - The values.

setValues

public void setValues(int part,
                      java.lang.Object value)
Set value.

Parameters:
part - The index.
value - The value.

getValues

public java.lang.Object[] getValues()
Get a copy of this values.

Returns:
The values.

getValues

public java.lang.Object getValues(int part)
Get value.

Parameters:
part - The index.
Returns:
The value.

toString

public java.lang.String toString()
Returns a string representation of this table.

Overrides:
toString in class java.lang.Object
Returns:
The string.

hashCode

public int hashCode()
Returns the hash code value for this assignable object. The hash code of a assignable object is defined to be the hashCode of the enclose value of the object, which implements the ConditionType interface. This ensures that t1.equals(t2) implies that t1.hashCode()==t2.hashCode() for any two objects t1 and t2, as required by the general contract of Object.hashCode.

Overrides:
hashCode in class java.lang.Object
Returns:
The hash code value for this object.

equals

public boolean equals(java.lang.Object o)
Indicates, whether some other object is "equal to" this one.

Overrides:
equals in class java.lang.Object
Parameters:
o - That object which is compared with this object.
Returns:
True, if this object is the same as that object.