net.sf.plist
Class NSInteger

java.lang.Object
  extended by net.sf.plist.NSObject
      extended by net.sf.plist.NSNumber
          extended by net.sf.plist.NSInteger

public class NSInteger
extends NSNumber

Represents an integer number between -2^63 and 2^63-1.

In this implementation, a primitive long is used to represent the NSInteger.

See Also:
Long

Constructor Summary
NSInteger(long theLong)
          Constructor.
 
Method Summary
 long getLong()
          Get the contents of this object as a long.
 Long getValue()
          Get the unmodifiable value of this object.
 Long number()
          Get the contents of this object as a Number.
 
Methods inherited from class net.sf.plist.NSNumber
createInstance
 
Methods inherited from class net.sf.plist.NSObject
equals, hashCode, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NSInteger

public NSInteger(long theLong)
Constructor.

Parameters:
theLong - value of the new object
Method Detail

getValue

public Long getValue()
Get the unmodifiable value of this object.

Overrides:
getValue in class NSNumber
Returns:
the value of this object
See Also:
number()

getLong

public long getLong()
Get the contents of this object as a long.

Returns:
the long

number

public Long number()
Get the contents of this object as a Number.

Specified by:
number in class NSNumber
Returns:
the Number