E
- - type of set contentspublic class NSSet<E> extends Object implements Cloneable, Serializable, com.webobjects.foundation.NSCoding, com.webobjects.foundation._NSFoundationCollection, Set<E>
NSSet<E> setA = new NSSet<E>(NSArray<E> listA);
NSSet<E> setB = new NSSet<E>(NSArray<E> listB);
logger.debug("intersection contains " + setA.setByIntersectingSet(setB));
com.webobjects.foundation.NSCoding._BigDecimalSupport, com.webobjects.foundation.NSCoding._BigIntegerSupport, com.webobjects.foundation.NSCoding._BooleanSupport, com.webobjects.foundation.NSCoding._ByteSupport, com.webobjects.foundation.NSCoding._CharacterSupport, com.webobjects.foundation.NSCoding._DateSupport, com.webobjects.foundation.NSCoding._DoubleSupport, com.webobjects.foundation.NSCoding._FloatSupport, com.webobjects.foundation.NSCoding._IntegerSupport, com.webobjects.foundation.NSCoding._LongSupport, com.webobjects.foundation.NSCoding._NumberSupport, com.webobjects.foundation.NSCoding._ShortSupport, com.webobjects.foundation.NSCoding._StringSupport, com.webobjects.foundation.NSCoding.Support
Modifier and Type | Field and Description |
---|---|
protected int |
_capacity |
static Class |
_CLASS |
protected int |
_count |
protected int |
_deletionLimit |
protected byte[] |
_flags |
protected int |
_hashCache |
protected int |
_hashtableBuckets |
protected static int |
_NSSetClassHashCode |
protected Object[] |
_objects |
protected Object[] |
_objectsCache |
static NSSet |
EmptySet |
Constructor and Description |
---|
NSSet() |
NSSet(Collection<? extends E> collection) |
NSSet(E object) |
NSSet(E[] objects) |
NSSet(E object,
E... objects) |
NSSet(NSArray<? extends E> objects) |
NSSet(NSSet<? extends E> otherSet) |
NSSet(Set<? extends E> set,
boolean ignoreNull) |
Modifier and Type | Method and Description |
---|---|
Object[] |
_allObjects() |
protected void |
_clearDeletionsAndCollisions() |
protected void |
_ensureCapacity(int capacity) |
protected void |
_initializeSet() |
protected void |
_setCapacity(int capacity) |
protected void |
_setCount(int count) |
int |
_shallowHashCode() |
boolean |
add(E o) |
boolean |
addAll(Collection<? extends E> c) |
NSArray<E> |
allObjects() |
E |
anyObject() |
protected int |
capacity() |
Class |
classForCoder() |
void |
clear() |
Object |
clone() |
boolean |
contains(Object o) |
boolean |
containsAll(Collection<?> c) |
boolean |
containsObject(Object object) |
int |
count() |
static Object |
decodeObject(com.webobjects.foundation.NSCoder coder) |
static <T> NSSet<T> |
emptySet() |
void |
encodeWithCoder(com.webobjects.foundation.NSCoder coder) |
boolean |
equals(Object object) |
int |
hashCode() |
HashSet<E> |
hashSet() |
NSSet<E> |
immutableClone() |
boolean |
intersectsSet(NSSet<?> otherSet) |
boolean |
isEmpty() |
boolean |
isEqualToSet(NSSet<?> otherSet) |
boolean |
isSubsetOfSet(NSSet<?> otherSet) |
Iterator<E> |
iterator() |
E |
member(Object object) |
NSMutableSet<E> |
mutableClone() |
Enumeration<E> |
objectEnumerator() |
protected Object[] |
objectsNoCopy() |
boolean |
remove(Object o) |
boolean |
removeAll(Collection<?> c) |
boolean |
retainAll(Collection<?> c) |
NSSet<E> |
setByIntersectingSet(NSSet<?> otherSet) |
NSSet<E> |
setBySubtractingSet(NSSet<?> otherSet) |
NSSet<E> |
setByUnioningSet(NSSet<? extends E> otherSet) |
int |
size() |
Object[] |
toArray() |
<T> T[] |
toArray(T[] objects) |
String |
toString() |
finalize, getClass, notify, notifyAll, wait, wait, wait
spliterator
parallelStream, removeIf, stream
public static final Class _CLASS
protected static int _NSSetClassHashCode
public static final NSSet EmptySet
protected transient int _capacity
protected transient int _count
protected transient int _deletionLimit
protected transient byte[] _flags
protected transient int _hashCache
protected transient int _hashtableBuckets
protected Object[] _objects
protected transient Object[] _objectsCache
public NSSet()
public NSSet(Collection<? extends E> collection)
public NSSet(E object)
public NSSet(E[] objects)
public static Object decodeObject(com.webobjects.foundation.NSCoder coder)
public Object[] _allObjects()
protected void _clearDeletionsAndCollisions()
protected void _ensureCapacity(int capacity)
protected void _initializeSet()
public int _shallowHashCode()
_shallowHashCode
in interface com.webobjects.foundation._NSFoundationCollection
public boolean add(E o)
public boolean addAll(Collection<? extends E> c)
public E anyObject()
public Class classForCoder()
classForCoder
in interface com.webobjects.foundation.NSCoding
public void clear()
public boolean contains(Object o)
public boolean containsAll(Collection<?> c)
containsAll
in interface Collection<E>
containsAll
in interface Set<E>
public boolean containsObject(Object object)
public int count()
protected void _setCount(int count)
protected int capacity()
protected void _setCapacity(int capacity)
public void encodeWithCoder(com.webobjects.foundation.NSCoder coder)
encodeWithCoder
in interface com.webobjects.foundation.NSCoding
public static <T> NSSet<T> emptySet()
public boolean equals(Object object)
public int hashCode()
public boolean intersectsSet(NSSet<?> otherSet)
public boolean isEmpty()
public boolean isEqualToSet(NSSet<?> otherSet)
public boolean isSubsetOfSet(NSSet<?> otherSet)
public NSMutableSet<E> mutableClone()
public Enumeration<E> objectEnumerator()
protected Object[] objectsNoCopy()
public boolean remove(Object o)
public boolean removeAll(Collection<?> c)
public boolean retainAll(Collection<?> c)
public int size()
public Object[] toArray()
public <T> T[] toArray(T[] objects)
Copyright © 2002 – 2020 Project Wonder.