io.stepfunc.dnp3.Flags Maven / Gradle / Ivy
// This library is provided under the terms of a non-commercial license.
//
// Please refer to the source repository for details:
//
// https://github.com/stepfunc/dnp3/blob/master/LICENSE.txt
//
// Please contact Step Function I/O if you are interested in commercial license:
//
// [email protected]
package io.stepfunc.dnp3;
import org.joou.*;
/**
* Collection of individual flag bits represented by an underlying mask value
*/
public final class Flags
{
/**
* bit-mask representing a set of individual flag bits
*/
public UByte value;
/**
* bit-mask representing a set of individual flag bits
*/
public Flags withValue(UByte value)
{
this.value = value;
return this;
}
/**
* Fully construct {@link Flags} specifying the value of each field
*
* @param value bit-mask representing a set of individual flag bits
*/
public Flags(UByte value)
{
this.value = value;
}
void _assertFieldsNotNull()
{
java.util.Objects.requireNonNull(value, "value cannot be null");
}
}