Class EmptySettings

  • All Implemented Interfaces:
    Settings


    public final class EmptySettings
    extends Object
    implements Settings
    An empty Settings class.
    • Method Detail

      • getInstance

        public static EmptySettings getInstance​()
        Get the instance
        Returns:
        instance of empty settings
      • validate

        public boolean validate​()
        Description copied from interface: Settings
        Check that the settings are sufficiently complete to allow them to be used.

        You should log any errors in validation.

        Validation will be ignored/superceded by more strict validation by the caller (for example, the caller might offer defaults if data is missing). However the implementation should be sufficiently robust that the use of settings instance as-is would not cause null pointers or obvious errors.

        Specified by:
        validate in interface Settings
        Returns:
        true is the settings are valid