org.opennms.core.utils
Class IntSet

java.lang.Object
  extended by org.opennms.core.utils.IntSet

public class IntSet
extends Object

Provides set functionality for ints.

Version:
$Id: $
Author:
ranger

Constructor Summary
IntSet()
           
 
Method Summary
 boolean add(int n)
          add
 boolean addAll(IntSet s)
          addAll
 void clear()
          clear
 boolean contains(int n)
          contains
 boolean containsAll(IntSet s)
          containsAll
 boolean isEmpty()
          isEmpty
 Iterator<Integer> iterator()
          iterator
 boolean remove(int n)
          remove
 boolean removeAll(IntSet s)
          removeAll
 boolean retainAll(IntSet s)
          retainAll
 int size()
          size
 int[] toArray()
          toArray
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IntSet

public IntSet()
Method Detail

add

public boolean add(int n)

add

Parameters:
n - a int.
Returns:
a boolean.

addAll

public boolean addAll(IntSet s)

addAll

Parameters:
s - a IntSet object.
Returns:
a boolean.

clear

public void clear()

clear


contains

public boolean contains(int n)

contains

Parameters:
n - a int.
Returns:
a boolean.

containsAll

public boolean containsAll(IntSet s)

containsAll

Parameters:
s - a IntSet object.
Returns:
a boolean.

isEmpty

public boolean isEmpty()

isEmpty

Returns:
a boolean.

iterator

public Iterator<Integer> iterator()

iterator

Returns:
a Iterator object.

remove

public boolean remove(int n)

remove

Parameters:
n - a int.
Returns:
a boolean.

removeAll

public boolean removeAll(IntSet s)

removeAll

Parameters:
s - a IntSet object.
Returns:
a boolean.

retainAll

public boolean retainAll(IntSet s)

retainAll

Parameters:
s - a IntSet object.
Returns:
a boolean.

size

public int size()

size

Returns:
a int.

toArray

public int[] toArray()

toArray

Returns:
an array of int.


Copyright © 2011. All Rights Reserved.