Class CoreFoundation.CFDictionaryRef
java.lang.Object
oshi.ffm.mac.CoreFoundation.CFTypeRef
oshi.ffm.mac.CoreFoundation.CFDictionaryRef
- Direct Known Subclasses:
CoreFoundation.CFMutableDictionaryRef
- Enclosing interface:
CoreFoundation
A reference to a CFDictionary object
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlonggetCount()Get the count of key-value pairs in the dictionaryGet a value from the dictionarybooleangetValueIfPresent(CoreFoundation.CFTypeRef key, MemorySegment value) Get a value if present
-
Constructor Details
-
CFDictionaryRef
-
-
Method Details
-
getValue
Get a value from the dictionary- Parameters:
key- The key- Returns:
- The value associated with the key, or null if not found
-
getCount
public long getCount()Get the count of key-value pairs in the dictionary- Returns:
- Number of pairs
-
getValueIfPresent
Get a value if present- Parameters:
key- The keyvalue- Pointer to store the value- Returns:
- True if the key exists
-