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

io.deepsense.neptune.clientlibrary.models.impl.channels.ChannelParamsImpl 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.channels;

import com.google.common.base.Preconditions;
import io.deepsense.neptune.clientlibrary.models.ChannelParams;
import io.deepsense.neptune.clientlibrary.models.ChannelType;

public class ChannelParamsImpl implements ChannelParams {

    private final String name;

    private final ChannelType type;

    private final boolean isHistoryPersisted;

    public ChannelParamsImpl(
            String name,
            ChannelType type,
            boolean isHistoryPersisted) {
        this.name = Preconditions.checkNotNull(name);
        this.type = Preconditions.checkNotNull(type);
        this.isHistoryPersisted = isHistoryPersisted;
    }

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

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

    @Override
    public boolean isHistoryPersisted() {
        return isHistoryPersisted;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy