tmf: Move statevalue unboxing method implementations to the base classes
authorAlexandre Montplaisir <alexmonthy@voxpopuli.im>
Tue, 10 Sep 2013 16:41:14 +0000 (12:41 -0400)
committerAlexandre Montplaisir <alexmonthy@voxpopuli.im>
Tue, 10 Sep 2013 19:30:25 +0000 (15:30 -0400)
commita9cdbafc829ad72a236f460215c2de1249504641
treeb2d256f387e4e6afcf38c26c5702714a467d04d7
parent9e3b3150cfb8615525c10acdcf4bc052866ee0a7
tmf: Move statevalue unboxing method implementations to the base classes

Made the default methods in TmfStateValue always throw exceptions.
Implementations can then override those for the types they support. Also
added some messages to the unboxing exceptions, to help when debugging.

Tweaked IntegerStateValue's so that they can be unboxed into a long,
since this will always be safe. The opposite however is not permitted.

Change-Id: I492a53e8daf1141c8aefa1c0ad1f005af8e77c30
Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Reviewed-on: https://git.eclipse.org/r/16294
Tested-by: Hudson CI
Reviewed-by: Patrick Tasse <patrick.tasse@gmail.com>
IP-Clean: Patrick Tasse <patrick.tasse@gmail.com>
org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/statevalue/ITmfStateValue.java
org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/statevalue/IntegerStateValue.java
org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/statevalue/LongStateValue.java
org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/statevalue/NullStateValue.java
org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/statevalue/StringStateValue.java
org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/statevalue/TmfStateValue.java
This page took 0.024976 seconds and 5 git commands to generate.