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

io.deepsense.neptune.clientlibrary.models.impl.charts.ChartSeriesImpl Maven / Gradle / Ivy

There is a newer version: 1.6.1
Show newest version
/**
 * Copyright (c) 2016, CodiLime Inc.
 */

package io.deepsense.neptune.clientlibrary.models.impl.charts;

import com.google.common.base.Preconditions;
import io.deepsense.neptune.clientlibrary.models.Channel;
import io.deepsense.neptune.clientlibrary.models.ChartSeries;
import io.deepsense.neptune.clientlibrary.models.ChartSeriesType;

public class ChartSeriesImpl implements ChartSeries {

    private final String name;

    private final Channel channel;

    private final ChartSeriesType type;

    public ChartSeriesImpl(String name, Channel channel, ChartSeriesType type) {
        this.name = Preconditions.checkNotNull(name);
        this.channel = Preconditions.checkNotNull(channel);
        this.type = Preconditions.checkNotNull(type);
    }

    @Override
    public String getName() {
        return name;
    }

    @Override
    public Channel getChannel() {
        return channel;
    }

    @Override
    public ChartSeriesType getType() {
        return type;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy