]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.eclipse.swt.win32.win32.x86_64/src/org/eclipse/swt/internal/LONG.java
Remove invalid SHA-256-Digests
[simantics/platform.git] / bundles / org.eclipse.swt.win32.win32.x86_64 / src / org / eclipse / swt / internal / LONG.java
1 /*******************************************************************************
2  * Copyright (c) 2000, 2012 IBM Corporation and others.
3  *
4  * This program and the accompanying materials
5  * are made available under the terms of the Eclipse Public License 2.0
6  * which accompanies this distribution, and is available at
7  * https://www.eclipse.org/legal/epl-2.0/
8  *
9  * SPDX-License-Identifier: EPL-2.0
10  *
11  * Contributors:
12  *     IBM Corporation - initial API and implementation
13  *******************************************************************************/
14 package org.eclipse.swt.internal;
15
16 /** @jniclass flags=no_gen */
17 public class LONG {
18         public long value;
19
20         public LONG (long value) {
21                 this.value = value;
22         }
23
24         @Override
25         public boolean equals (Object object) {
26                 if (object == this) return true;
27                 if (!(object instanceof LONG)) return false;
28                 LONG obj = (LONG)object;
29                 return obj.value == this.value;
30         }
31
32         @Override
33         public int hashCode () {
34                 return (int)(value ^ (value >>> 32));
35         }
36 }