org.mindswap.pellet.utils.intset
Class ShiftedBitIntSet

java.lang.Object
  extended by org.mindswap.pellet.utils.intset.BitIntSet
      extended by org.mindswap.pellet.utils.intset.ShiftedBitIntSet
All Implemented Interfaces:
IntSet

public class ShiftedBitIntSet
extends BitIntSet

Title:

Description:

Copyright: Copyright (c) 2007

Company: Clark & Parsia, LLC.

Author:
Evren Sirin

Constructor Summary
ShiftedBitIntSet()
           
ShiftedBitIntSet(ShiftedBitIntSet other)
           
 
Method Summary
 void add(int value)
          Adds a new integer to this set.
 boolean contains(int value)
          Checks if the given integer value is in this set.
 IntSet copy()
          Creates a copy of this set.
 IntIterator iterator()
          An iterator over the values of this set.
 int max()
          Returns the maximum integer in this set.
 int min()
          Returns the minimum integer in this set.
 void remove(int value)
          Remove the given integer value from this set.
 
Methods inherited from class org.mindswap.pellet.utils.intset.BitIntSet
addAll, isEmpty, size, union
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ShiftedBitIntSet

public ShiftedBitIntSet()

ShiftedBitIntSet

public ShiftedBitIntSet(ShiftedBitIntSet other)
Method Detail

add

public void add(int value)
Description copied from interface: IntSet
Adds a new integer to this set.

Specified by:
add in interface IntSet
Overrides:
add in class BitIntSet
Parameters:
value - integer value to be added

contains

public boolean contains(int value)
Description copied from interface: IntSet
Checks if the given integer value is in this set.

Specified by:
contains in interface IntSet
Overrides:
contains in class BitIntSet
Parameters:
value - the integer value being checked
Returns:
true if the value is in this set

copy

public IntSet copy()
Description copied from interface: IntSet
Creates a copy of this set.

Specified by:
copy in interface IntSet
Overrides:
copy in class BitIntSet
Returns:
a copy of this set

iterator

public IntIterator iterator()
Description copied from interface: IntSet
An iterator over the values of this set. There is no guarantee on the order of the elements.

Specified by:
iterator in interface IntSet
Overrides:
iterator in class BitIntSet
Returns:
an iterator over the values of the set

max

public int max()
Description copied from interface: IntSet
Returns the maximum integer in this set.

Specified by:
max in interface IntSet
Overrides:
max in class BitIntSet
Returns:
the maximum integer in this set

min

public int min()
Description copied from interface: IntSet
Returns the minimum integer in this set.

Specified by:
min in interface IntSet
Overrides:
min in class BitIntSet
Returns:
the minimum integer in this set

remove

public void remove(int value)
Description copied from interface: IntSet
Remove the given integer value from this set.

Specified by:
remove in interface IntSet
Overrides:
remove in class BitIntSet
Parameters:
value - the integer value to be removed


Copyright © 2004 Evren Sirin. All Rights Reserved.