net.ontopia.utils
Interface SetPoolIF

All Superinterfaces:
java.util.Collection, java.lang.Iterable, java.util.Set
All Known Implementing Classes:
SetPool

public interface SetPoolIF
extends java.util.Set

INTERNAL: Interface implemented by all set pools.

Since:
2.0

Method Summary
 java.util.Set add(java.util.Set set, java.lang.Object added, boolean dereference)
          INTERNAL: Return a set that is the result of adding the given object from the given set.
 void dereference(java.util.Set pooled)
          INTERNAL: Decrement reference count for the given set.
 java.util.Set reference(java.util.Set set)
          INTERNAL: Increment reference count for the given set.
 java.util.Set remove(java.util.Set set, java.lang.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

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


dereference

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


add

java.util.Set add(java.util.Set set,
                  java.lang.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

java.util.Set remove(java.util.Set set,
                     java.lang.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.