|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.electric.database.ImmutableElectricObject
public abstract class ImmutableElectricObject
This immutable class is the base class of all Electric immutable objects that can be extended with Variables.
| Field Summary | |
|---|---|
int |
flags
flags of this IimmutableElectricObject. |
| Method Summary | ||
|---|---|---|
abstract boolean |
equalsExceptVariables(ImmutableElectricObject o)
Indicates whether fields of other ImmutableElectricObject are equal to fileds of this object. |
|
int |
getNumVariables()
Method to return the number of Variables on this ImmutableElectricObject. |
|
Variable |
getVar(int varIndex)
Method to return the Variable by its varIndex. |
|
Variable |
getVar(Variable.Key key)
Method to return the Variable on this ImmuatbleElectricObject with a given key. |
|
java.util.Iterator<Variable> |
getVariables()
Method to return an Iterator over all Variables on this ImmutableElectricObject. |
|
|
getVarValue(Variable.Key key,
java.lang.Class type)
Method to return the value of the Variable on this ImmutableElectricObject with a given key and type. |
|
abstract int |
hashCodeExceptVariables()
Return a hash code value for fields of this object. |
|
int |
searchVar(Variable.Key key)
Searches the variables for the specified variable key using the binary search algorithm. |
|
Variable[] |
toVariableArray()
Method to return an array of all Variables on this ImmutableElectricObject. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public final int flags
| Method Detail |
|---|
public Variable getVar(Variable.Key key)
key - the key of the Variable.
java.lang.NullPointerException - if key is null
public <T> T getVarValue(Variable.Key key,
java.lang.Class type)
key - the key of the Variable.type - the required type of the Variable.
java.lang.NullPointerException - if key or type is nullpublic java.util.Iterator<Variable> getVariables()
public Variable[] toVariableArray()
public int getNumVariables()
public Variable getVar(int varIndex)
varIndex - index of Variable.
ArrayIndexOutOfBoundesException - if varIndex out of bounds.public int searchVar(Variable.Key key)
key - the variable key to be searched.
java.lang.NullPointerException - if key is nullpublic abstract int hashCodeExceptVariables()
public abstract boolean equalsExceptVariables(ImmutableElectricObject o)
o - other ImmutableElectricObject.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||