com.sun.electric.database.variable
Class Variable.Key

java.lang.Object
  extended by com.sun.electric.database.variable.Variable.Key
All Implemented Interfaces:
java.lang.Comparable<Variable.Key>
Direct Known Subclasses:
Variable.AttrKey
Enclosing class:
Variable

public static class Variable.Key
extends java.lang.Object
implements java.lang.Comparable<Variable.Key>

The Key class caches Variable names.


Method Summary
 int compareTo(Variable.Key that)
          Compares Variable Keys by their names.
 java.lang.String getName()
          Method to return the name of this Key object.
 boolean isAttribute()
          Method to return if this Variable.Key is a User Attribute.
static void printStatistics()
          Print statistics about Variable Keys.
 java.lang.String toString()
          Returns a printable version of this Key.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getName

public java.lang.String getName()
Method to return the name of this Key object.

Returns:
the name of this Key object.

isAttribute

public boolean isAttribute()
Method to return if this Variable.Key is a User Attribute.

Returns:
true if this Variable.Key is an attribute, false otherwise.

compareTo

public int compareTo(Variable.Key that)
Compares Variable Keys by their names.

Specified by:
compareTo in interface java.lang.Comparable<Variable.Key>
Parameters:
that - the other Variable Key.
Returns:
a comparison between the Variable Keys.

toString

public java.lang.String toString()
Returns a printable version of this Key.

Overrides:
toString in class java.lang.Object
Returns:
a printable version of this Key.

printStatistics

public static void printStatistics()
Print statistics about Variable Keys.