Class CoreFoundation.CFTypeRef

java.lang.Object
oshi.ffm.mac.CoreFoundation.CFTypeRef
Direct Known Subclasses:
CoreFoundation.CFAllocatorRef, CoreFoundation.CFArrayRef, CoreFoundation.CFBooleanRef, CoreFoundation.CFDataRef, CoreFoundation.CFDateFormatter, CoreFoundation.CFDictionaryRef, CoreFoundation.CFLocale, CoreFoundation.CFNumberRef, CoreFoundation.CFStringRef, DiskArbitration.DADiskRef, DiskArbitration.DASessionRef
Enclosing interface:
CoreFoundation

public static class CoreFoundation.CFTypeRef extends Object
Base class for all CoreFoundation objects
  • Constructor Details

  • Method Details

    • segment

      public MemorySegment segment()
    • isNull

      public boolean isNull()
    • getTypeID

      public long getTypeID()
      Gets the type ID of this CF object
      Returns:
      The type ID
    • isTypeID

      public boolean isTypeID(long typeID)
      Tests if this object has the specified type ID
      Parameters:
      typeID - The type ID to test against
      Returns:
      True if the types match
    • retain

      public void retain()
      Retains this object (increments reference count)
    • release

      public void release()
      Releases this object (decrements reference count)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object