Class ServerFileLoader

    • Constructor Detail

    • Method Detail

      • prepare

        public void prepare()
                     throws java.io.IOException
        Throws:
        java.io.IOException
      • load

        public java.util.Optional<Server> load​(ServerUUID loaded)
        Description copied from interface: ServerLoader
        Load the server information.
        Specified by:
        load in interface ServerLoader
        Parameters:
        loaded - UUID of the server, null if not known
        Returns:
        Optional of the saved information or empty if it has not been stored.
      • save

        public void save​(Server server)
        Description copied from interface: ServerLoader
        Save the server information.
        Specified by:
        save in interface ServerLoader
        Parameters:
        server - Information to save.
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class Config
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Config