Skip navigation links
JNA API 5.10.0

Class Structure.StructureSet

  • All Implemented Interfaces:
    java.lang.Iterable<Structure>, java.util.Collection<Structure>, java.util.Set<Structure>
    Enclosing class:

    static class Structure.StructureSet
    extends java.util.AbstractCollection<Structure>
    implements java.util.Set<Structure>
    Avoid using a hash-based implementation since the hash code for a Structure is not immutable.
    • Field Summary

      Modifier and Type Field and Description
      (package private) Structure[] elements 
    • Constructor Summary

      Constructor and Description
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      boolean add(Structure o) 
      boolean contains(java.lang.Object o) 
      Structure[] getElements() 
      java.util.Iterator<Structure> iterator()
      Simple implementation so that toString() doesn't break.
      boolean remove(java.lang.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.Set

        addAll, clear, containsAll, equals, hashCode, isEmpty, removeAll, retainAll, spliterator, toArray, toArray
      • Methods inherited from interface java.util.Collection

        parallelStream, removeIf, stream
      • Methods inherited from interface java.lang.Iterable

    • Constructor Detail

      • StructureSet

    • Method Detail

      • getElements

        public Structure[] getElements()
      • size

        public int size()
        Specified by:
        size in interface java.util.Collection<Structure>
        Specified by:
        size in interface java.util.Set<Structure>
        Specified by:
        size in class java.util.AbstractCollection<Structure>
      • contains

        public boolean contains(java.lang.Object o)
        Specified by:
        contains in interface java.util.Collection<Structure>
        Specified by:
        contains in interface java.util.Set<Structure>
        contains in class java.util.AbstractCollection<Structure>
      • add

        public boolean add(Structure o)
        Specified by:
        add in interface java.util.Collection<Structure>
        Specified by:
        add in interface java.util.Set<Structure>
        add in class java.util.AbstractCollection<Structure>
      • remove

        public boolean remove(java.lang.Object o)
        Specified by:
        remove in interface java.util.Collection<Structure>
        Specified by:
        remove in interface java.util.Set<Structure>
        remove in class java.util.AbstractCollection<Structure>
      • iterator

        public java.util.Iterator<Structure> iterator()
        Simple implementation so that toString() doesn't break. Provides an iterator over a snapshot of this Set.
        Specified by:
        iterator in interface java.lang.Iterable<Structure>
        Specified by:
        iterator in interface java.util.Collection<Structure>
        Specified by:
        iterator in interface java.util.Set<Structure>
        Specified by:
        iterator in class java.util.AbstractCollection<Structure>
JNA API 5.10.0

Copyright © 2007-2018 Timothy Wall. All Rights Reserved.