Class NSHashTable<T extends NSObject>

    • Constructor Detail

      • NSHashTable

        public NSHashTable()
      • 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()
      • getValues

        public NSArray<T> getValues()
      • any

        public T any()
      • asSet

        public NSSet<T> asSet()
      • supportsSecureCoding

        public static boolean supportsSecureCoding()
      • createAdapter

        protected java.util.AbstractSet<T> createAdapter()
      • add

        public boolean add​(T e)
        Specified by:
        add in interface java.util.Collection<T extends NSObject>
        Specified by:
        add in interface java.util.Set<T extends NSObject>
      • addAll

        public boolean addAll​(java.util.Collection<? extends T> c)
        Specified by:
        addAll in interface java.util.Collection<T extends NSObject>
        Specified by:
        addAll in interface java.util.Set<T extends NSObject>
      • clear

        public void clear()
        Specified by:
        clear in interface java.util.Collection<T extends NSObject>
        Specified by:
        clear in interface java.util.Set<T extends NSObject>
      • contains

        public boolean contains​(java.lang.Object o)
        Specified by:
        contains in interface java.util.Collection<T extends NSObject>
        Specified by:
        contains in interface java.util.Set<T extends NSObject>
      • containsAll

        public boolean containsAll​(java.util.Collection<?> c)
        Specified by:
        containsAll in interface java.util.Collection<T extends NSObject>
        Specified by:
        containsAll in interface java.util.Set<T extends NSObject>
      • isEmpty

        public boolean isEmpty()
        Specified by:
        isEmpty in interface java.util.Collection<T extends NSObject>
        Specified by:
        isEmpty in interface java.util.Set<T extends NSObject>
      • iterator

        public java.util.Iterator<T> iterator()
        Specified by:
        iterator in interface java.util.Collection<T extends NSObject>
        Specified by:
        iterator in interface java.lang.Iterable<T extends NSObject>
        Specified by:
        iterator in interface java.util.Set<T extends NSObject>
      • remove

        public boolean remove​(java.lang.Object o)
        Specified by:
        remove in interface java.util.Collection<T extends NSObject>
        Specified by:
        remove in interface java.util.Set<T extends NSObject>
      • removeAll

        public boolean removeAll​(java.util.Collection<?> c)
        Specified by:
        removeAll in interface java.util.Collection<T extends NSObject>
        Specified by:
        removeAll in interface java.util.Set<T extends NSObject>
      • retainAll

        public boolean retainAll​(java.util.Collection<?> c)
        Specified by:
        retainAll in interface java.util.Collection<T extends NSObject>
        Specified by:
        retainAll in interface java.util.Set<T extends NSObject>
      • size

        public int size()
        Specified by:
        size in interface java.util.Collection<T extends NSObject>
        Specified by:
        size in interface java.util.Set<T extends NSObject>
      • toArray

        public java.lang.Object[] toArray()
        Specified by:
        toArray in interface java.util.Collection<T extends NSObject>
        Specified by:
        toArray in interface java.util.Set<T extends NSObject>
      • toArray

        public <U> U[] toArray​(U[] a)
        Specified by:
        toArray in interface java.util.Collection<T extends NSObject>
        Specified by:
        toArray in interface java.util.Set<T extends NSObject>
      • 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)
      • init

        protected long init​(NSCoder decoder)