Java java.lang Short fields, constructors, methods, implement or subclass

Example usage for Java java.lang Short fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for java.lang Short.

The text is from its open source code.

Field

shortMIN_VALUE
A constant holding the minimum value a short can have, -215.
shortMAX_VALUE
A constant holding the maximum value a short can have, 215-1.
ClassTYPE
The Class instance representing the primitive type short .
intSIZE
The number of bits used to represent a short value in two's complement binary form.
intBYTES
The number of bytes used to represent a short value in two's complement binary form.

Constructor

Short(short value)
Constructs a newly allocated Short object that represents the specified short value.
Short(String s)
Constructs a newly allocated Short object that represents the short value indicated by the String parameter.

Method

bytebyteValue()
Returns the value of this Short as a byte after a narrowing primitive conversion.
intcompare(short x, short y)
Compares two short values numerically.
intcompareTo(Short anotherShort)
Compares two Short objects numerically.
Shortdecode(String nm)
Decodes a String into a Short .
doubledoubleValue()
Returns the value of this Short as a double after a widening primitive conversion.
booleanequals(Object obj)
Compares this object to the specified object.
floatfloatValue()
Returns the value of this Short as a float after a widening primitive conversion.
ClassgetClass()
Returns the runtime class of this Object .
inthashCode()
Returns a hash code for this Short ; equal to the result of invoking intValue() .
intintValue()
Returns the value of this Short as an int after a widening primitive conversion.
longlongValue()
Returns the value of this Short as a long after a widening primitive conversion.
shortparseShort(String s)
Parses the string argument as a signed decimal short .
shortparseShort(String s, int radix)
Parses the string argument as a signed short in the radix specified by the second argument.
shortreverseBytes(short i)
Returns the value obtained by reversing the order of the bytes in the two's complement representation of the specified short value.
shortshortValue()
Returns the value of this Short as a short .
StringtoString()
Returns a String object representing this Short 's value.
StringtoString(short s)
Returns a new String object representing the specified short .
inttoUnsignedInt(short x)
Converts the argument to an int by an unsigned conversion.
ShortvalueOf(String s, int radix)
Returns a Short object holding the value extracted from the specified String when parsed with the radix given by the second argument.
ShortvalueOf(String s)
Returns a Short object holding the value given by the specified String .
ShortvalueOf(short s)
Returns a Short instance representing the specified short value.