Class HashSetInt


  • public class HashSetInt
    extends java.lang.Object
    HashSetInt

    Copyright: Actelion Ltd., Inc. All Rights Reserved This software is the proprietary information of Actelion Pharmaceuticals, Ltd. Use is subject to license terms.

    Version:
    1.0 4 Mar 2010 MvK: Start implementation
    Author:
    Modest von Korff
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean add​(int v)
      If the key is already present nothing will happen.
      boolean add​(int[] a)  
      boolean add​(java.util.List<java.lang.Integer> li)  
      void clear()  
      boolean contains​(int v)  
      int[] getValues()
      Deep copy.
      void remove​(int v)  
      int size()  
      java.util.List<java.lang.Integer> toList()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • HashSetInt

        public HashSetInt()
      • HashSetInt

        public HashSetInt​(int capacity)
      • HashSetInt

        public HashSetInt​(java.util.List<java.lang.Integer> li)
      • HashSetInt

        public HashSetInt​(int[] a)
    • Method Detail

      • clear

        public void clear()
      • add

        public boolean add​(int v)
        If the key is already present nothing will happen.
        Parameters:
        v -
        Returns:
        false if key is already present.
      • add

        public boolean add​(int[] a)
      • add

        public boolean add​(java.util.List<java.lang.Integer> li)
      • remove

        public void remove​(int v)
      • contains

        public boolean contains​(int v)
      • size

        public int size()
      • getValues

        public int[] getValues()
        Deep copy.
        Returns:
      • toList

        public java.util.List<java.lang.Integer> toList()