Package adams.gui.goe

Class GlobalInfoCache


  • public class GlobalInfoCache
    extends Object
    For caching the global info of classes.
    Author:
    fracpete (fracpete at waikato dot ac dot nz)
    • Method Detail

      • has

        public boolean has​(Class cls)
        Checks whether the class offers a global info.
        Parameters:
        cls - the class to check
        Returns:
        true if the class offers global info
      • has

        public boolean has​(String clsname)
        Checks whether the class offers a global info.
        Parameters:
        clsname - the class to check
        Returns:
        true if the class offers global info
      • get

        public String get​(Class cls)
        Returns the global info for the specified class.
        Parameters:
        cls - the class to get the info for
        Returns:
        the info, null if not available
      • get

        public String get​(String clsname)
        Returns the global info for the specified class.
        Parameters:
        clsname - the class to check
        Returns:
        the info, null if not available
      • getSingleton

        public static GlobalInfoCache getSingleton()
        Returns the singleton instance.
        Returns:
        the singleton