Skip navigation links
JNA API 4.2.2-SNAPSHOT
com.sun.jna

Class Structure.StructureSet

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


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

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

      Constructors 
      Constructor and Description
      StructureSet() 
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      boolean add(java.lang.Object o) 
      boolean contains(java.lang.Object o) 
      Structure[] getElements() 
      java.util.Iterator 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

        forEach
    • Constructor Detail

      • StructureSet

        StructureSet()
    • Method Detail

      • getElements

        public Structure[] getElements()
      • size

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

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

        public boolean add(java.lang.Object o)
        Specified by:
        add in interface java.util.Collection
        Specified by:
        add in interface java.util.Set
        Overrides:
        add in class java.util.AbstractCollection
      • remove

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

        public java.util.Iterator 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
        Specified by:
        iterator in interface java.util.Collection
        Specified by:
        iterator in interface java.util.Set
        Specified by:
        iterator in class java.util.AbstractCollection
JNA API 4.2.2-SNAPSHOT

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