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

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

package com.devsmart.ubjson;


public final class UBInt16 extends UBValue {

    private short mValue;

    UBInt16(long value) {
        mValue = (short)(0xFFFF & value);
    }

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

    public int getInt() {
        return mValue;
    }

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy