Documentation of 'org.hsqldb.lib.OrderedHashSet' Java class
OrderedHashSet
org.hsqldb.lib

Class OrderedHashSet

  • All Implemented Interfaces:
    Collection, HsqlList, Set


    public class OrderedHashSet
    extends HashSet
    implements HsqlList, Set
    Implementation of an ordered Set which maintains the inserted order of elements and allows access by index. Iterators return the elements in the index order. This class does not store null elements.
    Since:
    1.9.0
    • Constructor Detail

      • OrderedHashSet

        public OrderedHashSet()
    • Method Detail

      • remove

        public boolean remove(java.lang.Object key)
        Description copied from class: HashSet
        returns true if removed
        Specified by:
        remove in interface Collection
        Specified by:
        remove in interface Set
        Overrides:
        remove in class HashSet
      • remove

        public java.lang.Object remove(int index)
                                throws java.lang.IndexOutOfBoundsException
        Specified by:
        remove in interface HsqlList
        Throws:
        java.lang.IndexOutOfBoundsException
      • insert

        public boolean insert(int index,
                              java.lang.Object key)
                       throws java.lang.IndexOutOfBoundsException
        Throws:
        java.lang.IndexOutOfBoundsException
      • set

        public java.lang.Object set(int index,
                                    java.lang.Object key)
                             throws java.lang.IndexOutOfBoundsException
        Specified by:
        set in interface HsqlList
        Throws:
        java.lang.IndexOutOfBoundsException
      • add

        public void add(int index,
                        java.lang.Object key)
                 throws java.lang.IndexOutOfBoundsException
        Specified by:
        add in interface HsqlList
        Throws:
        java.lang.IndexOutOfBoundsException
      • get

        public java.lang.Object get(int index)
                             throws java.lang.IndexOutOfBoundsException
        Specified by:
        get in interface HsqlList
        Throws:
        java.lang.IndexOutOfBoundsException
      • toArray

        public void toArray(java.lang.Object[] array)
        Overrides:
        toArray in class HashSet
      • getIndex

        public int getIndex(java.lang.Object key)
      • getSmallestIndex

        public int getSmallestIndex(OrderedHashSet other)
      • getCommonElementCount

        public int getCommonElementCount(Set other)

DataMelt 3.0 © DataMelt by jWork.ORG

Ads help maintain this website.