Class NSNull

All Implemented Interfaces:
Cloneable, Comparable<NSObject>

public final class NSNull extends NSObject
Internally used representation of the null value for storing it inside dictionaries and sets.
Author:
Daniel Dreibrodt
  • Method Details

    • clone

      public NSObject clone()
      Description copied from class: NSObject
      Creates and returns a deep copy of this instance.
      Specified by:
      clone in class NSObject
      Returns:
      A clone of this instance.
    • toJavaObject

      public Object toJavaObject()
      Description copied from class: NSObject
      Converts this NSObject into an equivalent object of the Java Runtime Environment.
      • NSArray objects are converted to arrays.
      • NSDictionary objects are converted to objects extending the Map class.
      • NSSet objects are converted to objects extending the Set class.
      • NSNumber objects are converted to primitive number values (int, long, double or boolean).
      • NSString objects are converted to String objects.
      • NSData objects are converted to byte arrays.
      • NSDate objects are converted to Date objects.
      • UID objects are converted to byte arrays.
      Specified by:
      toJavaObject in class NSObject
      Returns:
      A native java object representing this NSObject's value.
    • toASCII

      protected void toASCII(StringBuilder ascii, int level)
    • toASCIIGnuStep

      protected void toASCIIGnuStep(StringBuilder ascii, int level)
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • compareTo

      public int compareTo(NSObject o)