Package org.robovm.apple.corefoundation
Class CFDictionary
java.lang.Object
org.robovm.rt.bro.NativeObject
org.robovm.apple.corefoundation.CFType
org.robovm.apple.corefoundation.CFPropertyList
org.robovm.apple.corefoundation.CFDictionary
- All Implemented Interfaces:
AutoCloseable
- Direct Known Subclasses:
CFMutableDictionary
public class CFDictionary extends CFPropertyList
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCFDictionary.AsMapMarshalerstatic classCFDictionary.AsStringMapMarshalerstatic classCFDictionary.AsStringStringMapMarshalerstatic classCFDictionary.CFDictionaryPtrNested 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 protectedCFDictionary() -
Method Summary
Modifier and Type Method Description protected voidapplyFunction(FunctionPtr applier, long context)<K extends NativeObject, V extends NativeObject>
Map<K,V>asMap(Class<K> keyType, Class<V> valueType)<V extends NativeObject>
Map<String,V>asStringMap(Class<V> valueType)Map<String,String>asStringStringMap()voidclear()booleancontainsKey(NativeObject key)protected booleancontainsKey(VoidPtr key)booleancontainsValue(NativeObject value)protected booleancontainsValue(VoidPtr value)static <K extends NativeObject, V extends NativeObject>
CFDictionarycreate(Collection<K> k, Collection<V> v)static <K extends NativeObject, V extends NativeObject>
CFDictionarycreate(Map<K,V> m)static CFDictionarycreate(NativeObject[] k, NativeObject[] v)static CFDictionarycreateCopy(CFAllocator allocator, CFDictionary theDict)static <V extends NativeObject>
CFDictionaryfromStringMap(Map<String,V> m)static CFDictionaryfromStringStringMap(Map<String,String> m)<T extends NativeObject>
Tget(NativeObject key, Class<T> type)static longgetClassTypeID()static org.robovm.apple.corefoundation.CFDictionaryKeyCallBacksgetCopyStringKeyCallBacks()protected longgetCount()protected longgetCountOfKey(VoidPtr key)protected longgetCountOfValue(VoidPtr value)protected voidgetKeysAndValues(VoidPtr.VoidPtrPtr keys, VoidPtr.VoidPtrPtr values)static org.robovm.apple.corefoundation.CFDictionaryKeyCallBacksgetTypeKeyCallBacks()static org.robovm.apple.corefoundation.CFDictionaryValueCallBacksgetTypeValueCallBacks()protected VoidPtrgetValue(VoidPtr key)protected booleangetValueIfPresent(VoidPtr key, VoidPtr.VoidPtrPtr value)voidput(NativeObject key, NativeObject value)voidputAll(CFDictionary dict)voidremove(NativeObject key)longsize()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
-
CFDictionary
protected CFDictionary()
-
-
Method Details
-
create
-
create
public static <K extends NativeObject, V extends NativeObject> CFDictionary create(Collection<K> k, Collection<V> v) -
create
-
asMap
public <K extends NativeObject, V extends NativeObject> Map<K,V> asMap(Class<K> keyType, Class<V> valueType) -
asStringMap
-
asStringStringMap
-
fromStringMap
-
fromStringStringMap
-
get
-
containsKey
-
containsValue
-
size
public long size() -
put
-
putAll
-
remove
-
clear
public void clear() -
getTypeKeyCallBacks
public static org.robovm.apple.corefoundation.CFDictionaryKeyCallBacks getTypeKeyCallBacks() -
getCopyStringKeyCallBacks
public static org.robovm.apple.corefoundation.CFDictionaryKeyCallBacks getCopyStringKeyCallBacks() -
getTypeValueCallBacks
public static org.robovm.apple.corefoundation.CFDictionaryValueCallBacks getTypeValueCallBacks() -
getClassTypeID
public static long getClassTypeID() -
createCopy
-
getCount
protected long getCount() -
getCountOfKey
-
getCountOfValue
-
containsKey
-
containsValue
-
getValue
-
getValueIfPresent
-
getKeysAndValues
-
applyFunction
-