Class AdminConfig


  • public class AdminConfig
    extends Object
    • Field Detail

      • COLLECTION_TYPE

        public static final Type COLLECTION_TYPE
    • Constructor Detail

      • AdminConfig

        public AdminConfig()
    • Method Detail

      • getAs

        public <T> Optional<T> getAs​(@NonNull
                                     @NonNull String key,
                                     @NonNull
                                     @NonNull Type type)
        Get a config value
        Type Parameters:
        T - – the type of the desired result object
        Parameters:
        key - the config key e.g. debug.auto_accept_invites
        type - the desired return type
        Returns:
        the value or an empty optional if the key was not found or conversion failed
      • getUnwrapped

        public <T> T getUnwrapped​(@NonNull
                                  @NonNull String key,
                                  @NonNull
                                  @NonNull Type type)
        Get a config value
        Type Parameters:
        T - – the type of the desired result object
        Parameters:
        key - the config key e.g. debug.auto_accept_invites
        type - the desired return type
        Returns:
        the value or null if the key was not found or conversion failed
      • getConfig

        public Map<String,​com.google.gson.JsonElement> getConfig()
      • setConfig

        public void setConfig​(Map<String,​com.google.gson.JsonElement> config)
      • canEqual

        protected boolean canEqual​(Object other)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object