Class CFArray

All Implemented Interfaces:
AutoCloseable
Direct Known Subclasses:
CFMutableArray

public class CFArray
extends CFPropertyList
  • Constructor Details

    • CFArray

      protected CFArray()
  • Method Details

    • create

      public static <T extends NativeObject> CFArray create​(Collection<T> objects)
    • create

      public static CFArray create​(NSObject... objects)
    • create

      public static CFArray create​(CFType... objects)
    • toArray

      public <T extends NativeObject> T[] toArray​(Class<T> type)
    • toList

      public <T extends NativeObject> List<T> toList​(Class<T> type)
    • get

      public <T extends NativeObject> T get​(long index, Class<T> type)
    • size

      public long size()
    • add

      public void add​(NativeObject value)
    • insert

      public void insert​(long idx, NativeObject value)
    • replace

      public void replace​(long idx, NativeObject value)
    • remove

      public void remove​(long idx)
    • clear

      public void clear()
    • asStringList

      public List<String> asStringList()
      Use this method to convert a CFArray of CFString items to a List of String items.
      Returns:
    • fromStrings

      public static CFArray fromStrings​(String... strings)
    • fromStrings

      public static CFArray fromStrings​(Collection<String> strings)
    • getTypeCallBacks

      public static org.robovm.apple.corefoundation.CFArrayCallBacks getTypeCallBacks()
    • getClassTypeID

      public static long getClassTypeID()
    • getCount

      protected long getCount()
    • getCountOfValue

      protected long getCountOfValue​(CFRange range, VoidPtr value)
    • containsValue

      protected boolean containsValue​(CFRange range, VoidPtr value)
    • getValueAtIndex

      protected VoidPtr getValueAtIndex​(long idx)
    • getValues

      protected void getValues​(CFRange range, VoidPtr.VoidPtrPtr values)
    • applyFunction

      protected void applyFunction​(CFRange range, FunctionPtr applier, VoidPtr context)
    • getFirstIndexOfValue

      protected long getFirstIndexOfValue​(CFRange range, VoidPtr value)
    • getLastIndexOfValue

      protected long getLastIndexOfValue​(CFRange range, VoidPtr value)
    • bSearchValues

      protected long bSearchValues​(CFRange range, VoidPtr value, FunctionPtr comparator, VoidPtr context)