Package org.robovm.apple.foundation
Class NSHashTable<T extends NSObject>
- java.lang.Object
-
- org.robovm.rt.bro.NativeObject
-
- org.robovm.objc.ObjCObject
-
- org.robovm.apple.foundation.NSObject
-
- org.robovm.apple.foundation.NSHashTable<T>
-
- All Implemented Interfaces:
java.lang.Iterable<T>
,java.util.Collection<T>
,java.util.Set<T>
,NSCoding
,NSFastEnumeration
,NSObjectProtocol
,NSSecureCoding
,org.robovm.objc.ObjCProtocol
public class NSHashTable<T extends NSObject> extends NSObject implements NSSecureCoding, NSFastEnumeration, java.util.Set<T>
- Since:
- Available in iOS 6.0 and later.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
NSHashTable.NSHashTablePtr<T 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 NSHashTable()
NSHashTable(java.util.Collection<T> c)
NSHashTable(java.util.Collection<T> c, NSHashTableOptions options, long initialCapacity)
NSHashTable(NSCoder decoder)
NSHashTable(NSHashTableOptions options, long initialCapacity)
protected
NSHashTable(NSObject.Handle h, long handle)
protected
NSHashTable(NSObject.SkipInit skipInit)
NSHashTable(T... objects)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
add(T e)
boolean
addAll(java.util.Collection<? extends T> c)
protected void
afterMarshaled(int flags)
T
any()
NSSet<T>
asSet()
void
clear()
boolean
contains(java.lang.Object o)
boolean
containsAll(java.util.Collection<?> c)
protected java.util.AbstractSet<T>
createAdapter()
void
encode(NSCoder coder)
boolean
equalsTo(NSHashTable<T> other)
protected long
getCount()
NSArray<T>
getValues()
protected long
init(NSCoder decoder)
protected long
init(NSHashTableOptions options, long initialCapacity)
void
intersect(NSHashTable<T> other)
boolean
intersects(NSHashTable<T> other)
boolean
isEmpty()
protected NSObject
isMember(NSObject object)
boolean
isSubsetOf(NSHashTable<T> other)
java.util.Iterator<T>
iterator()
void
minus(NSHashTable<T> other)
boolean
remove(java.lang.Object o)
boolean
removeAll(java.util.Collection<?> c)
boolean
retainAll(java.util.Collection<?> c)
int
size()
static boolean
supportsSecureCoding()
java.lang.Object[]
toArray()
<U> U[]
toArray(U[] a)
void
union(NSHashTable<T> other)
-
Methods inherited from class org.robovm.apple.foundation.NSObject
addKeyValueObserver, addKeyValueObserver, 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
-
NSHashTable
public NSHashTable()
-
NSHashTable
protected NSHashTable(NSObject.Handle h, long handle)
-
NSHashTable
protected NSHashTable(NSObject.SkipInit skipInit)
-
NSHashTable
public NSHashTable(NSHashTableOptions options, long initialCapacity)
-
NSHashTable
public NSHashTable(NSCoder decoder)
-
NSHashTable
public NSHashTable(java.util.Collection<T> c)
-
NSHashTable
public NSHashTable(T... objects)
-
NSHashTable
public NSHashTable(java.util.Collection<T> c, NSHashTableOptions options, long initialCapacity)
-
-
Method Detail
-
getCount
protected long getCount()
-
any
public T any()
-
supportsSecureCoding
public static boolean supportsSecureCoding()
-
createAdapter
protected java.util.AbstractSet<T> createAdapter()
-
afterMarshaled
protected void afterMarshaled(int flags)
- Overrides:
afterMarshaled
in classNSObject
-
add
public boolean add(T e)
-
addAll
public boolean addAll(java.util.Collection<? extends T> c)
-
clear
public void clear()
-
contains
public boolean contains(java.lang.Object o)
-
containsAll
public boolean containsAll(java.util.Collection<?> c)
-
isEmpty
public boolean isEmpty()
-
iterator
public java.util.Iterator<T> iterator()
-
remove
public boolean remove(java.lang.Object o)
-
removeAll
public boolean removeAll(java.util.Collection<?> c)
-
retainAll
public boolean retainAll(java.util.Collection<?> c)
-
size
public int size()
-
toArray
public java.lang.Object[] toArray()
-
toArray
public <U> U[] toArray(U[] a)
-
init
protected long init(NSHashTableOptions options, long initialCapacity)
-
intersects
public boolean intersects(NSHashTable<T> other)
-
equalsTo
public boolean equalsTo(NSHashTable<T> other)
-
isSubsetOf
public boolean isSubsetOf(NSHashTable<T> other)
-
intersect
public void intersect(NSHashTable<T> other)
-
union
public void union(NSHashTable<T> other)
-
minus
public void minus(NSHashTable<T> other)
-
init
protected long init(NSCoder decoder)
-
-