home *** CD-ROM | disk | FTP | other *** search
- package java.text;
-
- import java.util.Map;
-
- class AttributeEntry implements Map.Entry {
- private AttributedCharacterIterator.Attribute key;
- private Object value;
-
- AttributeEntry(AttributedCharacterIterator.Attribute var1, Object var2) {
- this.key = var1;
- this.value = var2;
- }
-
- public boolean equals(Object var1) {
- if (!(var1 instanceof AttributeEntry)) {
- return false;
- } else {
- AttributeEntry var2 = (AttributeEntry)var1;
- return var2.key.equals(this.key) && (this.value == null ? var2.value == null : var2.value.equals(this.value));
- }
- }
-
- public Object getKey() {
- return this.key;
- }
-
- public Object getValue() {
- return this.value;
- }
-
- public Object setValue(Object var1) {
- throw new UnsupportedOperationException();
- }
-
- public int hashCode() {
- return this.key.hashCode() ^ (this.value == null ? 0 : this.value.hashCode());
- }
-
- public String toString() {
- return this.key.toString() + "=" + this.value.toString();
- }
- }
-