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

io.stepfunc.dnp3.Flags Maven / Gradle / Ivy

There is a newer version: 1.6.0
Show newest version
// 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");
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy