Package net.shibboleth.shared.collection
Class IndexingObjectStore.StoredObjectWrapper
java.lang.Object
net.shibboleth.shared.collection.IndexingObjectStore.StoredObjectWrapper
- Enclosing class:
- IndexingObjectStore<T>
Wrapper class that keeps track of the reference count for a stored object.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate TThe stored object.private intThe object reference count. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidDecrements the current reference count by one.Gets the wrapped object.intGets the current reference count.voidIncrements the current reference count by one.
-
Field Details
-
object
The stored object. -
referenceCount
private int referenceCountThe object reference count.
-
-
Constructor Details
-
StoredObjectWrapper
Constructor.- Parameters:
wrappedObject- the object being wrapped
-
-
Method Details
-
getObject
Gets the wrapped object.- Returns:
- the wrapped object
-
getReferenceCount
public int getReferenceCount()Gets the current reference count.- Returns:
- current reference count
-
incremementReferenceCount
public void incremementReferenceCount()Increments the current reference count by one. -
decremementReferenceCount
public void decremementReferenceCount()Decrements the current reference count by one.
-