tmf/lttng: Remove unneeded (non-Javadoc) comments
[deliverable/tracecompass.git] / org.eclipse.linuxtools.tmf.core / src / org / eclipse / linuxtools / tmf / core / statevalue / StringStateValue.java
CommitLineData
a52fde77 1/*******************************************************************************
11252342 2 * Copyright (c) 2012, 2013 Ericsson
a52fde77
AM
3 * Copyright (c) 2010, 2011 École Polytechnique de Montréal
4 * Copyright (c) 2010, 2011 Alexandre Montplaisir <alexandre.montplaisir@gmail.com>
2cb26548 5 *
a52fde77
AM
6 * All rights reserved. This program and the accompanying materials are
7 * made available under the terms of the Eclipse Public License v1.0 which
8 * accompanies this distribution, and is available at
9 * http://www.eclipse.org/legal/epl-v10.html
2cb26548 10 *
a52fde77
AM
11 *******************************************************************************/
12
13package org.eclipse.linuxtools.tmf.core.statevalue;
14
15/**
16 * A state value containing a variable-sized string
a52fde77 17 *
2cb26548
AM
18 * @version 1.0
19 * @author Alexandre Montplaisir
a52fde77
AM
20 */
21final class StringStateValue extends TmfStateValue {
22
23 private final String valueStr;
24
25 public StringStateValue(String valueAsString) {
26 assert (valueAsString != null);
27 this.valueStr = valueAsString;
28 }
29
30 @Override
b67a2540
AM
31 public Type getType() {
32 return Type.STRING;
a52fde77
AM
33 }
34
35 @Override
36 public boolean isNull() {
37 return false;
38 }
39
40 @Override
41 public String getValue() {
42 return valueStr;
43 }
44
45 @Override
46 public byte[] toByteArray() {
47 return valueStr.getBytes();
48 }
49
50 @Override
51 public String toString() {
52 return valueStr;
53 }
54}
This page took 0.033568 seconds and 5 git commands to generate.