1 23 24 29 42 43 48 49 package com.sun.enterprise.util.collection; 50 51 public class LongEntry { 52 53 public long key; 54 public Object object; 55 56 LongEntry (long key, Object object) { 57 this.key = key; 58 this.object = object; 59 } 60 61 public boolean equals(Object object) { 62 if (object instanceof IntEntry) { 63 return ( ((IntEntry) object).key == key ); 64 } 65 return false; 66 } 67 68 public String toString() { 69 return "key: " + key + "; obj: " + object; 70 } 71 72 } 73 74 | Popular Tags |