summaryrefslogtreecommitdiffstats
path: root/vespajlib/src/main/java/com/yahoo/slime/LongValue.java
diff options
context:
space:
mode:
Diffstat (limited to 'vespajlib/src/main/java/com/yahoo/slime/LongValue.java')
-rw-r--r--vespajlib/src/main/java/com/yahoo/slime/LongValue.java13
1 files changed, 9 insertions, 4 deletions
diff --git a/vespajlib/src/main/java/com/yahoo/slime/LongValue.java b/vespajlib/src/main/java/com/yahoo/slime/LongValue.java
index 62752f2b27c..e728e890274 100644
--- a/vespajlib/src/main/java/com/yahoo/slime/LongValue.java
+++ b/vespajlib/src/main/java/com/yahoo/slime/LongValue.java
@@ -1,11 +1,16 @@
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.slime;
+/**
+ * @author havardpe
+ */
final class LongValue extends Value {
+
private final long value;
public LongValue(long value) { this.value = value; }
- public final Type type() { return Type.LONG; }
- public final long asLong() { return this.value; }
- public final double asDouble() { return (double)this.value; }
- public final void accept(Visitor v) { v.visitLong(value); }
+ public Type type() { return Type.LONG; }
+ public long asLong() { return this.value; }
+ public double asDouble() { return this.value; }
+ public void accept(Visitor v) { v.visitLong(value); }
+
}