comparison dwt/internal/LONG.d @ 0:380af2bdd8e5

Upload of whole dwt tree
author Jacob Carlborg <doob@me.com> <jacob.carlborg@gmail.com>
date Sat, 09 Aug 2008 17:00:02 +0200
parents
children d8635bb48c7c
comparison
equal deleted inserted replaced
-1:000000000000 0:380af2bdd8e5
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 * Port to the D programming language:
11 * Frank Benoit <benoit@tionex.de>
12 *******************************************************************************/
13 module dwt.internal.LONG;
14
15 import dwt.dwthelper.utils;
16
17 public class LONG
18 {
19 public int /*long*/value;
20
21 public this (int /*long*/value)
22 {
23 this.value = value;
24 }
25
26 public override int opEquals (Object object)
27 {
28 if (object is this)
29 return true;
30
31 if (auto obj = cast(LONG) object)
32 return obj.value is this.value;
33
34 return false;
35 }
36
37 public override hash_t toHash ()
38 {
39 return /*64*/value;
40 }
41 }