Package com.sun.jna
Class Structure.StructureSet
- Enclosing class:
- Structure
Avoid using a hash-based implementation since the hash code
for a Structure is not immutable.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.util.AbstractCollection
addAll, clear, containsAll, isEmpty, removeAll, retainAll, toArray, toArray, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
-
Field Details
-
elements
Structure[] elements
-
-
Constructor Details
-
StructureSet
StructureSet()
-
-
Method Details
-
getElements
-
size
public int size()- Specified by:
sizein interfaceCollection<Structure>- Specified by:
sizein interfaceSet<Structure>- Specified by:
sizein classAbstractCollection<Structure>
-
contains
- Specified by:
containsin interfaceCollection<Structure>- Specified by:
containsin interfaceSet<Structure>- Overrides:
containsin classAbstractCollection<Structure>
-
add
- Specified by:
addin interfaceCollection<Structure>- Specified by:
addin interfaceSet<Structure>- Overrides:
addin classAbstractCollection<Structure>
-
remove
- Specified by:
removein interfaceCollection<Structure>- Specified by:
removein interfaceSet<Structure>- Overrides:
removein classAbstractCollection<Structure>
-
iterator
Simple implementation so that toString() doesn't break. Provides an iterator over a snapshot of this Set.
-