0
|
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 }
|