Class baja.Integer
Extends
baja.Simple.
Represents a baja:Integer in BajaScript.
Boxes JavaScript Number to represent a baja:Integer.
When creating a Simple, always use the 'make' method instead of creating a new Object.
Defined in: obj.js.
| Constructor Attributes | Constructor Name and Description |
|---|---|
| Field Attributes | Field Name and Description |
|---|---|
| <static> |
baja.Integer.DEFAULT
Default Integer instance.
|
| <static> |
baja.Integer.MAX_VALUE
Integer Max Value.
|
| <static> |
baja.Integer.MIN_VALUE
Integer Min Value.
|
- Fields borrowed from class baja.Value:
- newCopy
- Fields borrowed from class baja.Object:
- equivalent, getIcon
| Method Attributes | Method Name and Description |
|---|---|
|
decodeFromString(str)
Decode a String to an Integer.
|
|
|
Encode an Integer to a String.
|
|
|
equals(obj)
Equality test.
|
|
|
Return the Symbol used for encoding this data type (primarily used for facets).
|
|
| <static> |
baja.Integer.make(num)
Make an Integer.
|
|
make(num)
Make an Integer.
|
|
|
toString()
Returns a string representation of the integer.
|
|
|
valueOf()
Return the Number encapsulated in the Integer.
|
Field Detail
<static>
baja.Integer.DEFAULT
Default Integer instance.
<static>
baja.Integer.MAX_VALUE
Integer Max Value.
<static>
baja.Integer.MIN_VALUE
Integer Min Value.
Method Detail
{baja.Integer}
decodeFromString(str)
Decode a String to an Integer.
- Parameters:
- {String} str
- Returns:
- {baja.Integer}
{String}
encodeToString()
Encode an Integer to a String.
- Returns:
- {String}
{Boolean}
equals(obj)
Equality test.
- Parameters:
- obj
- Returns:
- {Boolean}
{String}
getDataTypeSymbol()
Return the Symbol used for encoding this data type (primarily used for facets).
- Returns:
- {String} the Symbol used for encoding this data type (primarily used for facets).
<static>
{baja.Integer}
baja.Integer.make(num)
Make an Integer.
- Parameters:
- {Number} num
- the Integer for the Simple.
- Returns:
- {baja.Integer} the Integer.
{baja.Integer}
make(num)
Make an Integer.
- Parameters:
- {Number} num
- the Integer for the Simple.
- Returns:
- {baja.Integer} the Integer.
{String}
toString()
Returns a string representation of the integer.
- Returns:
- {String}
{Number}
valueOf()
Return the Number encapsulated in the Integer.
- Returns:
- {Number} Number for the Integer.