KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > swt > internal > gtk > LONG


1 /*******************************************************************************
2  * Copyright (c) 2000, 2004 IBM Corporation and others. All rights reserved.
3  * The contents of this file are made available under the terms
4  * of the GNU Lesser General Public License (LGPL) Version 2.1 that
5  * accompanies this distribution (lgpl-v21.txt). The LGPL is also
6  * available at http://www.gnu.org/licenses/lgpl.html. If the version
7  * of the LGPL at http://www.gnu.org is different to the version of
8  * the LGPL accompanying this distribution and there is any conflict
9  * between the two license versions, the terms of the LGPL accompanying
10  * this distribution shall govern.
11  *******************************************************************************/

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