summaryrefslogtreecommitdiffstats
path: root/vespajlib/src/main/java/com/yahoo/slime/LongValue.java
blob: e4910133674704afcd962e0a5a7cc85ecb2a5046 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.slime;

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); }
}