org.progeeks.meta.annotate
Class CompositeKey
java.lang.Object
org.progeeks.meta.annotate.CompositeKey
public class CompositeKey
- extends java.lang.Object
A key representing two values that can be used as a key
to lookup a single annotation. There are potentially other
utility objects that could have done this job but eventually
annotation keys may provide some additional methods for
transformations, etc.. This way we remain flexible without
incurring additional outside dependencies.
- Version:
- $Revision: 1.2 $
- Author:
- Paul Speed
Constructor Summary |
CompositeKey(java.lang.Object value1,
java.lang.Object value2)
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
CompositeKey
public CompositeKey(java.lang.Object value1,
java.lang.Object value2)
getValue1
public java.lang.Object getValue1()
getValue2
public java.lang.Object getValue2()
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in class java.lang.Object
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
Copyright © 2002-2003 Paul Speed. All Rights Reserved.