io.stepfunc.dnp3.Flags Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of dnp3 Show documentation
Show all versions of dnp3 Show documentation
Safe and fast DNP3 library
// 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;
/**
* @param value New value for the 'value' field
* @return Reference to this instance of the class with the modified value
*/
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");
}
}