org.bridj.objc
Class NSNumber

java.lang.Object
  extended by org.bridj.NativeObject
      extended by org.bridj.objc.ObjCObject
          extended by org.bridj.objc.NSObject
              extended by org.bridj.objc.NSNumber
All Implemented Interfaces:
NativeObjectInterface

public class NSNumber
extends NSObject


Field Summary
 
Fields inherited from class org.bridj.NativeObject
peer, typeInfo
 
Constructor Summary
NSNumber()
           
 
Method Summary
 int compare(Pointer<NSNumber> another)
           
 double doubleValue()
           
 boolean equals(Object o)
           
 float floatValue()
           
 int intValue()
           
 boolean isEqualToNumber(Pointer<NSNumber> another)
           
 long longValue()
           
static Pointer<NSNumber> numberWithBool(boolean value)
           
static Pointer<NSNumber> numberWithDouble(double e)
           
static Pointer<NSNumber> numberWithFloat(float value)
           
static Pointer<NSNumber> numberWithInt(int value)
           
static Pointer<NSNumber> numberWithLong(long value)
           
 short shortValue()
           
 
Methods inherited from class org.bridj.objc.ObjCObject
description, hash, hashCode, init, isEqual, isKindOf, isKindOfClassNamed, isMemberOf, isMemberOfClassNamed, methodFor, perform, perform$with, perform$with$with, respondsTo, stringValue, toString
 
Methods inherited from class org.bridj.NativeObject
clone
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NSNumber

public NSNumber()
Method Detail

numberWithBool

public static Pointer<NSNumber> numberWithBool(boolean value)

numberWithInt

public static Pointer<NSNumber> numberWithInt(int value)

numberWithDouble

public static Pointer<NSNumber> numberWithDouble(double e)

numberWithLong

public static Pointer<NSNumber> numberWithLong(long value)

numberWithFloat

public static Pointer<NSNumber> numberWithFloat(float value)

shortValue

public short shortValue()

intValue

public int intValue()

longValue

public long longValue()

floatValue

public float floatValue()

doubleValue

public double doubleValue()

compare

public int compare(Pointer<NSNumber> another)

isEqualToNumber

public boolean isEqualToNumber(Pointer<NSNumber> another)

equals

public boolean equals(Object o)
Overrides:
equals in class ObjCObject


Copyright © 2009-2012. All Rights Reserved.