Package com.yahoo.jrt

Class Int32Value


  • public class Int32Value
    extends Value
    32-bit integer value
    • Constructor Detail

      • Int32Value

        public Int32Value​(int value)
        Create from a Java-type value
        Parameters:
        value - the value
    • Method Detail

      • type

        public byte type()
        Description copied from class: Value
        Obtain the type identifier for this value
        Specified by:
        type in class Value
        Returns:
        INT32
      • count

        public int count()
        Description copied from class: Value
        Obtain the number of entries stored in this value. This is 1 for basic data types and the size of the array for array types.
        Specified by:
        count in class Value
        Returns:
        the number of entries stored in this value
      • asInt32

        public int asInt32()
        Description copied from class: Value
        Interpret this value as a Int32Value and return the contents as an appropriate Java type
        Overrides:
        asInt32 in class Value
        Returns:
        the value contained in this object as a Java type
      • toString

        public java.lang.String toString()
        Description copied from class: Value
        Force a proper toString
        Specified by:
        toString in class Value