Class MemberStore


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

      Fields 
      Modifier and Type Field Description
      private boolean synced  
      private java.util.Map types  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private MemberStore​(boolean synced)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object get​(java.lang.Class definedIn, java.lang.String member)
      Get the value for a type's member in the store.
      java.util.Set keySet()
      Get the set of types in the store.
      static MemberStore newInstance()
      Creates a new instance of a MemberStore.
      static MemberStore newSynchronizedInstance()
      Creates a new synchronized instance of a MemberStore.
      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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • types

        private final java.util.Map types
      • synced

        private final boolean synced
    • Constructor Detail

      • MemberStore

        private MemberStore​(boolean synced)
    • 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 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 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 null
        member - 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