io.deepsense.neptune.clientlibrary.models.impl.charts.ChartSeriesImpl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of neptune-client-library Show documentation
Show all versions of neptune-client-library Show documentation
Enables integration with Neptune in your Java code
/**
* 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