net.ontopia.utils
Interface PoolableSetIF

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

public interface PoolableSetIF
extends java.util.Set

INTERNAL: Interface implemented by sets that can be pooled by a SetPoolIF. This interface is used byte SetPoolIFs to manage the life cycle of the sets that they manage.

Since:
2.0

Method Summary
 int dereferenced(SetPoolIF pool)
          INTERNAL: Decrement and return reference count.
 boolean equalsAdd(java.util.Set set, java.lang.Object add)
          INTERNAL: Returns true if the given set will be equal to this set if the given object had been added to this set.
 boolean equalsRemove(java.util.Set set, java.lang.Object remove)
          INTERNAL: Returns true if the given set will be equal to this set if the given object had been removed from this set.
 int getReferenceCount()
          INTERNAL: Return the current reference count.
 int referenced(SetPoolIF pool)
          INTERNAL: Increment and return reference count.
 
Methods inherited from interface java.util.Set
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray
 

Method Detail

getReferenceCount

int getReferenceCount()
INTERNAL: Return the current reference count. The reference count is used to control the life cycle of the pooled set. The pool instance that manages this set will use the reference count to figure out when to drop the set from its pool.


referenced

int referenced(SetPoolIF pool)
INTERNAL: Increment and return reference count.


dereferenced

int dereferenced(SetPoolIF pool)
INTERNAL: Decrement and return reference count.


equalsAdd

boolean equalsAdd(java.util.Set set,
                  java.lang.Object add)
INTERNAL: Returns true if the given set will be equal to this set if the given object had been added to this set.


equalsRemove

boolean equalsRemove(java.util.Set set,
                     java.lang.Object remove)
INTERNAL: Returns true if the given set will be equal to this set if the given object had been removed from this set.



Copyright © 2000-2012 Ontopia.