Class ConfigBuilder

    • Field Detail

      • INSTANCE

        public static final ConfigBuilder INSTANCE
        the singleton instance
    • Method Detail

      • register

        public void register​(Function<File,​Config> creator,
                             Predicate<File> checker)
        Register a new config creator
        Parameters:
        creator - the creator
        checker - the file checker
      • register

        public void register​(Function<File,​Config> creator,
                             String... type)
        Register a new config creator
        Parameters:
        creator - the creator
        type - the file type (extension)