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 boolean
add(Structure o)
boolean
contains(Object o)
Structure[]
getElements()
Iterator<Structure>
iterator()
Simple implementation so that toString() doesn't break.boolean
remove(Object o)
int
size()
-
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:
size
in interfaceCollection<Structure>
- Specified by:
size
in interfaceSet<Structure>
- Specified by:
size
in classAbstractCollection<Structure>
-
contains
public boolean contains(Object o)
- Specified by:
contains
in interfaceCollection<Structure>
- Specified by:
contains
in interfaceSet<Structure>
- Overrides:
contains
in classAbstractCollection<Structure>
-
add
public boolean add(Structure o)
- Specified by:
add
in interfaceCollection<Structure>
- Specified by:
add
in interfaceSet<Structure>
- Overrides:
add
in classAbstractCollection<Structure>
-
remove
public boolean remove(Object o)
- Specified by:
remove
in interfaceCollection<Structure>
- Specified by:
remove
in interfaceSet<Structure>
- Overrides:
remove
in classAbstractCollection<Structure>
-
-