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

com.devsmart.ubjson.UBUInt8 Maven / Gradle / Ivy

The newest version!
package com.devsmart.ubjson;


public final class UBUInt8 extends UBValue {

    private static final long serialVersionUID = -526447759886014607L;
    private short mValue;

    UBUInt8(long value) {
        mValue = (short)(0xFF & value);
    }

    @Override
    public Type getType() {
        return Type.Uint8;
    }

    int getInt() {
        return mValue;
    }

    @Override
    public String toString() {
        return Integer.toString(getInt());
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy