Class MemberStore

java.lang.Object
com.thoughtworks.xstream.core.util.MemberStore

public class MemberStore extends Object
A store for member information of types.
Since:
1.4.21
  • Field Details

    • types

      private final Map types
    • synced

      private final boolean synced
  • Constructor Details

    • MemberStore

      private MemberStore(boolean synced)
  • Method Details

    • 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 Object put(Class definedIn, String member, Object value)
      Put an element for a the member of the type into the store.
      Parameters:
      definedIn - the type owning the member or null
      member - the member name
      value - the value to store
      Returns:
      the old stored value for the member or null
      Since:
      1.4.21
    • get

      public Object get(Class definedIn, String member)
      Get the value for a type's member in the store.
      Parameters:
      definedIn - the type owning the member or null
      member - the member name
      Returns:
      the stored value for the member or null
      Since:
      1.4.21
    • keySet

      public Set keySet()
      Get the set of types in the store.
      Returns:
      the set of type names
      Since:
      1.4.21