Class Int8Value


  • public class Int8Value
    extends NumberValue<java.lang.Byte>
    Implements an SGr value containing a 8-bit signed integer value.
    • Method Detail

      • setValue

        protected void setValue​(double value)
        Description copied from class: NumberValue
        Updates the numeric value.
        Specified by:
        setValue in class NumberValue<java.lang.Byte>
        Parameters:
        value - a double value
      • asArray

        public Int8Value[] asArray()
        Description copied from class: Value
        Gets the value as array.
        Specified by:
        asArray in class Value
        Returns:
        an array of Value
      • absValue

        public void absValue()
        Description copied from class: Value
        Sets the instance's value to its absolute value, if possible.
        Specified by:
        absValue in class Value
      • roundToInt

        public void roundToInt()
        Description copied from class: Value
        Rounds the instance's value to the nearest integer, if possible.
        Specified by:
        roundToInt in class Value
      • of

        public static Int8Value of​(byte value)
        Creates a new instance from byte.
        Parameters:
        value - the byte value
        Returns:
        an instance of Int8Value