Class IndexingObjectStore.StoredObjectWrapper
- java.lang.Object
-
- net.shibboleth.utilities.java.support.collection.IndexingObjectStore.StoredObjectWrapper
-
- Enclosing class:
- IndexingObjectStore<T>
private class IndexingObjectStore.StoredObjectWrapper extends Object
Wrapper class that keeps track of the reference count for a stored object.
-
-
Field Summary
Fields Modifier and Type Field Description private TobjectThe stored object.private intreferenceCountThe object reference count.
-
Constructor Summary
Constructors Constructor Description StoredObjectWrapper(T wrappedObject)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddecremementReferenceCount()Decrements the current reference count by one.TgetObject()Gets the wrapped object.intgetReferenceCount()Gets the current reference count.voidincremementReferenceCount()Increments the current reference count by one.
-
-
-
Field Detail
-
object
private T object
The stored object.
-
referenceCount
private int referenceCount
The object reference count.
-
-
Constructor Detail
-
StoredObjectWrapper
public StoredObjectWrapper(T wrappedObject)
Constructor.- Parameters:
wrappedObject- the object being wrapped
-
-
Method Detail
-
getObject
public T 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.
-
-