Skip to content
Reference > Classes

Short

Definition

Short var = .... ;

Extends

Extended By

None

Description

A number of type Short.

Method Summary

Owner Name Return Type Description
Short constructor(s) Object Initialize a Short object.
Short byteValue() Byte Returns the value of this Short as a Byte after a narrowing primitive conversion.
Object getClassName() String Returns the string name of this object's class type.
Object toJson() String Returns a string of a json representation of this object.

Method Definitions


constructor(s)

Short short = new Short(Short s)

Description

Initialize a Short object.

Parameter Definition

Name Type Description
s Short  a short value

Example 1

1
2
3
Short s = 100s;

// s = 100

byteValue()

Byte Short::byteValue()

Description

Returns the value of this Short as a Byte after a narrowing primitive conversion.

Example 1

1
2
3
4
Short s = 100;
s.byteValue();

// s.byteValue() = 100

getClassName()

String Object::getClassName()

Description

Returns the string name of this object's class type.


toJson()

String Object::toJson()

Description

Returns a string of a json representation of this object.