Commit | Line | Data |
---|---|---|
4208b510 AM |
1 | /******************************************************************************* |
2 | * Copyright (c) 2015, 2016 EfficiOS Inc., Alexandre Montplaisir | |
3 | * | |
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 | |
8 | *******************************************************************************/ | |
9 | ||
10 | package org.eclipse.tracecompass.internal.provisional.analysis.lami.core.types; | |
11 | ||
12 | import org.eclipse.jdt.annotation.Nullable; | |
13 | ||
14 | /** | |
15 | * Integer data element | |
16 | * | |
17 | * @author Alexandre Montplaisir | |
18 | */ | |
19 | public class LamiInteger extends LamiData { | |
20 | ||
21 | private final long fValue; | |
22 | ||
23 | /** | |
24 | * Constructor | |
25 | * | |
26 | * @param value The integer value (as a long) | |
27 | */ | |
28 | public LamiInteger(long value) { | |
29 | fValue = value; | |
30 | } | |
31 | ||
32 | /** | |
33 | * Return the value | |
34 | * | |
35 | * @return The value | |
36 | */ | |
37 | public long getValue() { | |
38 | return fValue; | |
39 | } | |
40 | ||
41 | @Override | |
42 | public @Nullable String toString() { | |
43 | return String.valueOf(fValue); | |
44 | } | |
45 | } |