1 /*******************************************************************************
2 * Copyright (c) 2013 École Polytechnique de Montréal
4 * All rights reserved. This program and the accompanying materials are
5 * made available under the terms of the Eclipse Public License v1.0 which
6 * accompanies this distribution, and is available at
7 * http://www.eclipse.org/legal/epl-v10.html
10 * François Rajotte - Initial API and implementation
11 *******************************************************************************/
13 package org
.eclipse
.linuxtools
.tmf
.core
.statevalue
;
15 import org
.eclipse
.jdt
.annotation
.Nullable
;
18 * A state value containing a long integer (8 bytes).
21 * @author François Rajotte
23 final class LongStateValue
extends TmfStateValue
{
25 private final long value
;
27 public LongStateValue(long valueAsLong
) {
28 this.value
= valueAsLong
;
32 public Type
getType() {
37 public boolean isNull() {
41 public boolean equals(@Nullable Object object
) {
42 if (!(object
instanceof LongStateValue
)) {
45 LongStateValue other
= (LongStateValue
) object
;
46 return (this.value
== other
.value
);
50 public int hashCode() {
51 return ((int) value
) ^
((int) (value
>>> 32));
55 public @Nullable String
toString() {
56 return String
.format("%3d", value
); //$NON-NLS-1$
59 // ------------------------------------------------------------------------
61 // ------------------------------------------------------------------------
64 public long unboxLong() {
This page took 0.030792 seconds and 5 git commands to generate.