KickJava   Java API By Example, From Geeks To Geeks.

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


1 /*******************************************************************************
2  * Copyright (c) 2000, 2007 IBM Corporation and others.
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the terms of the Eclipse Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/epl-v10.html
7  *
8  * Contributors:
9  * IBM Corporation - initial API and implementation
10  *******************************************************************************/

11 package org.eclipse.swt.internal;
12
13 public class LONG {
14     public int /*long*/ value;
15     
16     public LONG (int /*long*/ value) {
17         this.value = value;
18     }
19
20     public boolean equals (Object JavaDoc 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)/*64*/value;
29     }
30 }
31
Popular Tags