All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.sisyphsu.smartbuf.node.array.DoubleArrayNode Maven / Gradle / Ivy

Go to download

SmartBuf, is a cross-language serialization and deserialization framework, and it has high performance and compression ratio like protobuf, high compatibility and scalability like json.

The newest version!
package com.github.sisyphsu.smartbuf.node.array;

import com.github.sisyphsu.smartbuf.node.Node;
import com.github.sisyphsu.smartbuf.node.NodeType;

/**
 * DoubleArrayNode represents double[]
 *
 * @author sulin
 * @since 2019-11-03 14:47:29
 */
public final class DoubleArrayNode extends Node {

    private final double[] data;

    public DoubleArrayNode(double[] data) {
        this.data = data;
    }

    @Override
    public Object value() {
        return data;
    }

    @Override
    public NodeType type() {
        return NodeType.ARRAY_DOUBLE;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy