org.openide.util
Class SharedClassObject.DataEntry

java.lang.Object
  extended by org.openide.util.SharedClassObject.DataEntry
Enclosing class:
SharedClassObject

static final class SharedClassObject.DataEntry
extends java.lang.Object

The inner class that encapsulates the shared data together with a reference counter


Constructor Summary
SharedClassObject.DataEntry()
           
 
Method Summary
(package private)  int decrease()
          Dereases the counter (thread safe)
(package private)  SharedClassObject first(SharedClassObject obj)
          Request for first object.
 SharedClassObject get()
           
(package private)  java.lang.Object get(SharedClassObject obj, java.lang.Object key)
          Returns a value for given key
(package private)  java.util.Map getMap()
          Returns the data
(package private)  java.util.Map<java.lang.Object,java.lang.Object> getMap(SharedClassObject obj)
          Returns the data
(package private)  int increase()
          Increases the counter (thread safe)
(package private)  boolean isInInitialize()
          initialize() is in progress?
 void reset(SharedClassObject obj)
          Reset map of values.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SharedClassObject.DataEntry

SharedClassObject.DataEntry()
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

isInInitialize

boolean isInInitialize()
initialize() is in progress?


getMap

java.util.Map<java.lang.Object,java.lang.Object> getMap(SharedClassObject obj)
Returns the data

Parameters:
obj - the requestor object
Returns:
the data

get

java.lang.Object get(SharedClassObject obj,
                     java.lang.Object key)
Returns a value for given key

Parameters:
obj - the requestor object
Returns:
the data

getMap

java.util.Map getMap()
Returns the data

Returns:
the data

increase

int increase()
Increases the counter (thread safe)

Returns:
new counter value

decrease

int decrease()
Dereases the counter (thread safe)

Returns:
new counter value

first

SharedClassObject first(SharedClassObject obj)
Request for first object. If there is none, use the requestor

Parameters:
obj - requestor
Returns:
the an object of this type

get

public SharedClassObject get()
Returns:
shared object or null

reset

public void reset(SharedClassObject obj)
Reset map of values.