Class Submodules


  • public class Submodules
    extends Object
    Contains helper methods to handle Submodules
    • Constructor Detail

      • Submodules

        public Submodules()
    • Method Detail

      • aggregate

        public static Submodule aggregate​(Set<Submodule> submodules)
        Returns an instance aggregating all the given submodules
      • aggregate

        public static Submodule aggregate​(Submodule... submodules)
        Returns an instance aggregating all the given submodules
      • flatten

        public static Set<Submodule> flatten​(Submodule submodule)
        Flattens the given submodule, returning all submodules if it is an instance of Submodules or the parameter in a singleton
      • from

        public static Submodule from​(String str)
        Returns the submodule for the given string, in the format [module.submodule].
      • fromKey

        public static Submodule fromKey​(String key)
        Returns the submodule for the given string, in the format [module.submodule.key].
      • getId

        public static int getId​(Submodule submodule)
        Returns an identifier for a given submodule
      • getSubmoduleClassFor

        public static Class<? extends Submodule> getSubmoduleClassFor​(Module module)
        Returns the submodule enum class for the given module
      • getSubmodulesFromModule

        public static List<? extends Submodule> getSubmodulesFromModule​(Module module)
      • qualifiedName

        public static String qualifiedName​(Submodule submodule)
        Returns the qualified name for the given submodule, that is: <MODULE>.<SUBMODULE>