Class MemberStore
- java.lang.Object
-
- com.thoughtworks.xstream.core.util.MemberStore
-
public class MemberStore extends java.lang.ObjectA store for member information of types.- Since:
- 1.4.21
-
-
Constructor Summary
Constructors Modifier Constructor Description privateMemberStore(boolean synced)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectget(java.lang.Class definedIn, java.lang.String member)Get the value for a type's member in the store.java.util.SetkeySet()Get the set of types in the store.static MemberStorenewInstance()Creates a new instance of a MemberStore.static MemberStorenewSynchronizedInstance()Creates a new synchronized instance of a MemberStore.java.lang.Objectput(java.lang.Class definedIn, java.lang.String member, java.lang.Object value)Put an element for a the member of the type into the store.
-
-
-
Method Detail
-
newInstance
public static MemberStore newInstance()
Creates a new instance of a MemberStore.- Since:
- 1.4.21
-
newSynchronizedInstance
public static MemberStore newSynchronizedInstance()
Creates a new synchronized instance of a MemberStore.- Since:
- 1.4.21
-
put
public java.lang.Object put(java.lang.Class definedIn, java.lang.String member, java.lang.Object value)Put an element for a the member of the type into the store.- Parameters:
definedIn- the type owning the member or nullmember- the member namevalue- the value to store- Returns:
- the old stored value for the member or null
- Since:
- 1.4.21
-
get
public java.lang.Object get(java.lang.Class definedIn, java.lang.String member)Get the value for a type's member in the store.- Parameters:
definedIn- the type owning the member or nullmember- the member name- Returns:
- the stored value for the member or null
- Since:
- 1.4.21
-
keySet
public java.util.Set keySet()
Get the set of types in the store.- Returns:
- the set of type names
- Since:
- 1.4.21
-
-