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

org.ldk.util.UInt5 Maven / Gradle / Ivy

There is a newer version: 0.0.124.0
Show newest version
package org.ldk.util;

/**
 * A 5-bit unsigned integer
 */
public class UInt5 {
    byte val;
    public UInt5(byte val) {
        if (val > 32 || val < 0) {
            throw new IllegalArgumentException();
        }
        this.val = val;
    }

    /**
     * @return the value represented
     */
    public byte getVal() {
        return val;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy