Package org.robovm.apple.foundation
Class NSMapTable<K extends NSObject,V extends NSObject>
- java.lang.Object
-
- org.robovm.rt.bro.NativeObject
-
- org.robovm.objc.ObjCObject
-
- org.robovm.apple.foundation.NSObject
-
- org.robovm.apple.foundation.NSMapTable<K,V>
-
- All Implemented Interfaces:
java.util.Map<K,V>
,NSCoding
,NSFastEnumeration
,NSObjectProtocol
,NSSecureCoding
,org.robovm.objc.ObjCProtocol
public class NSMapTable<K extends NSObject,V extends NSObject> extends NSObject implements NSSecureCoding, NSFastEnumeration, java.util.Map<K,V>
- Since:
- Available in iOS 6.0 and later.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
NSMapTable.NSMapTablePtr<K extends NSObject,V extends NSObject>
-
Nested classes/interfaces inherited from class org.robovm.apple.foundation.NSObject
NSObject.Handle, NSObject.Marshaler, NSObject.NoRetainMarshaler, NSObject.NSKeyValueObserver, NSObject.NSObjectPtr, NSObject.SkipInit
-
-
Field Summary
-
Fields inherited from class org.robovm.apple.foundation.NSObject
FLAG_NO_RETAIN
-
-
Constructor Summary
Constructors Modifier Constructor Description NSMapTable()
NSMapTable(java.util.Map<K,V> m)
NSMapTable(java.util.Map<K,V> m, NSMapTableOptions keyOptions, NSMapTableOptions valueOptions, long initialCapacity)
NSMapTable(NSCoder decoder)
NSMapTable(NSMapTableOptions keyOptions, NSMapTableOptions valueOptions, long initialCapacity)
protected
NSMapTable(NSObject.Handle h, long handle)
protected
NSMapTable(NSObject.SkipInit skipInit)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description NSDictionary<K,V>
asDictionary()
void
clear()
boolean
containsKey(java.lang.Object key)
boolean
containsValue(java.lang.Object value)
void
encode(NSCoder coder)
java.util.Set<java.util.Map.Entry<K,V>>
entrySet()
V
get(java.lang.Object key)
protected long
getCount()
protected NSEnumerator<K>
getKeyEnumerator()
protected NSObject
getObject(NSObject aKey)
protected NSEnumerator<V>
getObjectEnumerator()
protected long
init(NSCoder decoder)
protected long
init(NSMapTableOptions keyOptions, NSMapTableOptions valueOptions, long initialCapacity)
boolean
isEmpty()
java.util.Set<K>
keySet()
V
put(K key, V value)
void
putAll(java.util.Map<? extends K,? extends V> m)
V
remove(java.lang.Object key)
protected void
removeAllObjects()
protected void
removeObject(NSObject aKey)
protected void
setObject(NSObject anObject, NSObject aKey)
int
size()
static boolean
supportsSecureCoding()
java.util.Collection<V>
values()
-
Methods inherited from class org.robovm.apple.foundation.NSObject
addKeyValueObserver, addKeyValueObserver, afterMarshaled, alloc, autorelease, autorelease, awakeFromNib, conformsToProtocol, copy, description, didChangeValue, didChangeValue, didChangeValues, doDispose, equals, forceSkipInit, getAutoContentAccessingProxy, getClassForCoder, getClassForKeyedArchiver, getKeyValueCoder, getObservationInfo, hash, hashCode, init, isEqual, isKindOfClass, isMemberOfClass, mutableCopy, performSelector, performSelector, performSelector, performSelector, performSelector, performSelector, performSelector, performSelectorInBackground, performSelectorOnMainThread, performSelectorOnMainThread, performSelectorV, performSelectorV, performSelectorV, release, release, removeKeyValueObserver, removeKeyValueObservers, respondsToSelector, retain, retain, retainCount, setObservationInfo, toString, willChangeValue, willChangeValue, willChangeValues
-
-
-
-
Constructor Detail
-
NSMapTable
public NSMapTable()
-
NSMapTable
protected NSMapTable(NSObject.Handle h, long handle)
-
NSMapTable
protected NSMapTable(NSObject.SkipInit skipInit)
-
NSMapTable
public NSMapTable(NSMapTableOptions keyOptions, NSMapTableOptions valueOptions, long initialCapacity)
-
NSMapTable
public NSMapTable(NSCoder decoder)
-
NSMapTable
public NSMapTable(java.util.Map<K,V> m, NSMapTableOptions keyOptions, NSMapTableOptions valueOptions, long initialCapacity)
-
-
Method Detail
-
getCount
protected long getCount()
-
supportsSecureCoding
public static boolean supportsSecureCoding()
-
containsKey
public boolean containsKey(java.lang.Object key)
-
containsValue
public boolean containsValue(java.lang.Object value)
-
get
public V get(java.lang.Object key)
-
isEmpty
public boolean isEmpty()
-
keySet
public java.util.Set<K> keySet()
-
size
public int size()
-
values
public java.util.Collection<V> values()
-
clear
public void clear()
-
remove
public V remove(java.lang.Object key)
-
init
protected long init(NSMapTableOptions keyOptions, NSMapTableOptions valueOptions, long initialCapacity)
-
removeObject
protected void removeObject(NSObject aKey)
-
getKeyEnumerator
protected NSEnumerator<K> getKeyEnumerator()
-
getObjectEnumerator
protected NSEnumerator<V> getObjectEnumerator()
-
removeAllObjects
protected void removeAllObjects()
-
asDictionary
public NSDictionary<K,V> asDictionary()
-
init
protected long init(NSCoder decoder)
-
-