Package com.sun.jna
Class Structure.StructureSet
- java.lang.Object
-
- java.util.AbstractCollection<Structure>
-
- com.sun.jna.Structure.StructureSet
-
- Enclosing class:
- Structure
static class Structure.StructureSet extends AbstractCollection<Structure> implements Set<Structure>
Avoid using a hash-based implementation since the hash code for a Structure is not immutable.
-
-
Constructor Summary
Constructors Constructor Description StructureSet()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanadd(Structure o)booleancontains(Object o)Structure[]getElements()Iterator<Structure>iterator()Simple implementation so that toString() doesn't break.booleanremove(Object o)intsize()-
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 Detail
-
elements
Structure[] elements
-
-
Method Detail
-
getElements
public Structure[] getElements()
-
size
public int size()
- Specified by:
sizein interfaceCollection<Structure>- Specified by:
sizein interfaceSet<Structure>- Specified by:
sizein classAbstractCollection<Structure>
-
contains
public boolean contains(Object o)
- Specified by:
containsin interfaceCollection<Structure>- Specified by:
containsin interfaceSet<Structure>- Overrides:
containsin classAbstractCollection<Structure>
-
add
public boolean add(Structure o)
- Specified by:
addin interfaceCollection<Structure>- Specified by:
addin interfaceSet<Structure>- Overrides:
addin classAbstractCollection<Structure>
-
remove
public boolean remove(Object o)
- Specified by:
removein interfaceCollection<Structure>- Specified by:
removein interfaceSet<Structure>- Overrides:
removein classAbstractCollection<Structure>
-
-