org.jmlspecs.jml4.rac.runtime
Class JMLOldExpressionCache.Key

java.lang.Object
  extended by org.jmlspecs.jml4.rac.runtime.JMLOldExpressionCache.Key
Enclosing class:
JMLOldExpressionCache

public static class JMLOldExpressionCache.Key
extends java.lang.Object

A class for representing keys for cache objects. We use arrays for keys, but we treat two arrays equal if both have the same elements.


Field Summary
 java.lang.Object[] values
           
 
Constructor Summary
JMLOldExpressionCache.Key(java.lang.Object[] values)
          Constructs a new key object from an array.
 
Method Summary
 boolean equals(java.lang.Object obj)
          Does the argument equal to this key object?
 int hashCode()
          Returns the hash code for this key object.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

values

public java.lang.Object[] values
Constructor Detail

JMLOldExpressionCache.Key

public JMLOldExpressionCache.Key(java.lang.Object[] values)
Constructs a new key object from an array.

Method Detail

equals

public boolean equals(java.lang.Object obj)
Does the argument equal to this key object?

Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Returns the hash code for this key object.

Overrides:
hashCode in class java.lang.Object