Package org.robovm.apple.corefoundation
Class CFArray
java.lang.Object
org.robovm.rt.bro.NativeObject
org.robovm.apple.corefoundation.CFType
org.robovm.apple.corefoundation.CFPropertyList
org.robovm.apple.corefoundation.CFArray
- All Implemented Interfaces:
AutoCloseable
- Direct Known Subclasses:
CFMutableArray
public class CFArray extends CFPropertyList
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCFArray.AsStringListMarshalerstatic classCFArray.CFArrayPtrNested classes/interfaces inherited from class org.robovm.apple.corefoundation.CFPropertyList
CFPropertyList.CFPropertyListPtrNested classes/interfaces inherited from class org.robovm.apple.corefoundation.CFType
CFType.AsListMarshaler, CFType.CFTypePtr, CFType.Marshaler, CFType.NoRetainMarshaler -
Constructor Summary
Constructors Modifier Constructor Description protectedCFArray() -
Method Summary
Modifier and Type Method Description voidadd(NativeObject value)protected voidapplyFunction(CFRange range, FunctionPtr applier, VoidPtr context)List<String>asStringList()Use this method to convert a CFArray of CFString items to a List of String items.protected longbSearchValues(CFRange range, VoidPtr value, FunctionPtr comparator, VoidPtr context)voidclear()protected booleancontainsValue(CFRange range, VoidPtr value)static <T extends NativeObject>
CFArraycreate(Collection<T> objects)static CFArraycreate(CFType... objects)static CFArraycreate(NSObject... objects)static CFArrayfromStrings(String... strings)static CFArrayfromStrings(Collection<String> strings)<T extends NativeObject>
Tget(long index, Class<T> type)static longgetClassTypeID()protected longgetCount()protected longgetCountOfValue(CFRange range, VoidPtr value)protected longgetFirstIndexOfValue(CFRange range, VoidPtr value)protected longgetLastIndexOfValue(CFRange range, VoidPtr value)static org.robovm.apple.corefoundation.CFArrayCallBacksgetTypeCallBacks()protected VoidPtrgetValueAtIndex(long idx)protected voidgetValues(CFRange range, VoidPtr.VoidPtrPtr values)voidinsert(long idx, NativeObject value)voidremove(long idx)voidreplace(long idx, NativeObject value)longsize()<T extends NativeObject>
T[]toArray(Class<T> type)<T extends NativeObject>
List<T>toList(Class<T> type)Methods inherited from class org.robovm.apple.corefoundation.CFPropertyList
asData, asData, create, create, create, create, create, create, createDeepCopy, createDeepCopy, isValid, writeMethods inherited from class org.robovm.apple.corefoundation.CFType
autorelease, close, dispose, dispose, doDispose, equalsTo, finalize, getAllocator, getDescription, getRetainCount, getTypeID, getTypeIDDescription, hash, makeCollectable, release, release, retain, retain, show, toString
-
Constructor Details
-
CFArray
protected CFArray()
-
-
Method Details
-
create
-
create
-
create
-
toArray
-
toList
-
get
-
size
public long size() -
add
-
insert
-
replace
-
remove
public void remove(long idx) -
clear
public void clear() -
asStringList
Use this method to convert a CFArray of CFString items to a List of String items.- Returns:
-
fromStrings
-
fromStrings
-
getTypeCallBacks
public static org.robovm.apple.corefoundation.CFArrayCallBacks getTypeCallBacks() -
getClassTypeID
public static long getClassTypeID() -
getCount
protected long getCount() -
getCountOfValue
-
containsValue
-
getValueAtIndex
-
getValues
-
applyFunction
-
getFirstIndexOfValue
-
getLastIndexOfValue
-
bSearchValues
protected long bSearchValues(CFRange range, VoidPtr value, FunctionPtr comparator, VoidPtr context)
-