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

Class HashSet

    • Constructor Detail

      • HashSet

        public HashSet()
      • HashSet

        public HashSet(int initialCapacity)
                throws java.lang.IllegalArgumentException
        Throws:
        java.lang.IllegalArgumentException
    • Method Detail

      • contains

        public boolean contains(java.lang.Object key)
        Specified by:
        contains in interface Collection
        Specified by:
        contains in interface Set
      • containsAll

        public boolean containsAll(Collection col)
      • get

        public java.lang.Object get(java.lang.Object key)
        Description copied from interface: Set
        This method returns the Object that is already in the set and is equal to the argument o.
        Specified by:
        get in interface Set
      • add

        public boolean add(java.lang.Object key)
        returns true if added
        Specified by:
        add in interface Collection
        Specified by:
        add in interface Set
      • addAll

        public boolean addAll(java.lang.Object[] keys)
        returns true if any added
      • addAll

        public boolean addAll(java.lang.Object[] keys,
                              int start,
                              int limit)
        returns true if any added
      • remove

        public boolean remove(java.lang.Object key)
        returns true if removed
        Specified by:
        remove in interface Collection
        Specified by:
        remove in interface Set
      • removeAll

        public boolean removeAll(Collection c)
        returns true if all were removed
      • removeAll

        public boolean removeAll(java.lang.Object[] keys)
        returns true if all were removed
      • toArray

        public void toArray(java.lang.Object[] a)
      • toArray

        public java.lang.Object[] toArray()
      • toString

        public java.lang.String toString()
        Returns a String like "[Drei, zwei, Eins]", exactly like java.util.HashSet.
        Overrides:
        toString in class java.lang.Object

DataMelt 3.0 © DataMelt by jWork.ORG

Ads help maintain this website.