1 11 package org.eclipse.swt.internal; 12 13 public class LONG { 14 public int value; 15 16 public LONG (int value) { 17 this.value = value; 18 } 19 20 public boolean equals (Object object) { 21 if (object == this) return true; 22 if (!(object instanceof LONG)) return false; 23 LONG obj = (LONG)object; 24 return obj.value == this.value; 25 } 26 27 public int hashCode () { 28 return (int)value; 29 } 30 } 31 | Popular Tags |