comparison dwt/internal/LONG.d @ 9:ad2b69216039

moved org.eclipse.swt to dwt
author Frank Benoit <benoit@tionex.de>
date Sat, 05 Jan 2008 17:39:49 +0100
parents org/eclipse/swt/internal/LONG.d@c8ad75f8819e
children 63c023465156
comparison
equal deleted inserted replaced
8:a1f832ca7d17 9:ad2b69216039
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 module org.eclipse.swt.internal.LONG;
12
13 public class LONG {
14 public int /*long*/ value;
15
16 public this (int /*long*/ value) {
17 this.value = value;
18 }
19
20 public int opEquals (Object object) {
21 if (object is this){
22 return true;
23 }
24 if ( auto obj = cast(LONG)object ) {
25 return obj.value == this.value;
26 }
27 return false;
28 }
29
30 public int hashCode () {
31 return /*64*/value;
32 }
33 }