members.put(name, pair);
}
+ /**
+ * Returns a string representation of the annotation.
+ */
public String toString() {
StringBuffer buf = new StringBuffer("@");
buf.append(getTypeName());
pair.value.write(writer);
}
}
-
+
+ /**
+ * Returns true if the given object represents the same annotation
+ * as this object. The equality test checks the member values.
+ */
public boolean equals(Object obj) {
if (obj == this)
return true;
throw new RuntimeException("no default value: " + classname + "."
+ name + "()");
}
-
+
+ /**
+ * Returns a hash code value for this object.
+ */
public int hashCode() {
if (cachedHashCode == Integer.MIN_VALUE) {
int hashCode = 0;
}
/**
- * Check that another annotation equals ourselves
+ * Check that another annotation equals ourselves.
*
* @param obj the other annotation
* @return the true when equals false otherwise