net.ontopia.utils
Interface SetPoolIF

All Superinterfaces:
Collection, Iterable, Set
All Known Implementing Classes:
SetPool

public interface SetPoolIF
extends Set

INTERNAL: Interface implemented by all set pools.

Since:
2.0

Method Summary
 Set add(Set set, Object added, boolean dereference)
          INTERNAL: Return a set that is the result of adding the given object from the given set.
 void dereference(Set pooled)
          INTERNAL: Decrement reference count for the given set.
 Set reference(Set set)
          INTERNAL: Increment reference count for the given set.
 Set remove(Set set, Object removed, boolean dereference)
          INTERNAL: Return a set that is the result of removing the given object from the given set.
 
Methods inherited from interface java.util.Set
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray
 

Method Detail

reference

Set reference(Set set)
INTERNAL: Increment reference count for the given set.


dereference

void dereference(Set pooled)
INTERNAL: Decrement reference count for the given set.


add

Set add(Set set,
        Object added,
        boolean dereference)
INTERNAL: Return a set that is the result of adding the given object from the given set. If the dereference flag is set the set reference count of the old set will be decremented by one.


remove

Set remove(Set set,
           Object removed,
           boolean dereference)
INTERNAL: Return a set that is the result of removing the given object from the given set. If the dereference flag is set the set reference count of the old set will be decremented by one.



Copyright © 2000-2012 Ontopia.