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, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods 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:
size
in interfaceCollection<Structure>
- Specified by:
size
in interfaceSet<Structure>
- Specified by:
size
in classAbstractCollection<Structure>
-
contains
- Specified by:
contains
in interfaceCollection<Structure>
- Specified by:
contains
in interfaceSet<Structure>
- Overrides:
contains
in classAbstractCollection<Structure>
-
add
- Specified by:
add
in interfaceCollection<Structure>
- Specified by:
add
in interfaceSet<Structure>
- Overrides:
add
in classAbstractCollection<Structure>
-
remove
- Specified by:
remove
in interfaceCollection<Structure>
- Specified by:
remove
in interfaceSet<Structure>
- Overrides:
remove
in classAbstractCollection<Structure>
-
iterator
Simple implementation so that toString() doesn't break. Provides an iterator over a snapshot of this Set.
-