Class ConfigChanged


  • public class ConfigChanged
    extends java.lang.Object
    An event where a configuration entry has been modified.
    • Constructor Summary

      Constructors 
      Constructor Description
      ConfigChanged()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected boolean canEqual​(java.lang.Object other)  
      boolean equals​(java.lang.Object o)  
      java.lang.String getGroup()
      The parent group for the key.
      java.lang.String getKey()
      The configuration key that has been modified.
      java.lang.String getNewValue()
      The new value of the entry, null if the entry has been unset.
      java.lang.String getOldValue()
      The previous value of the entry.
      java.lang.String getProfile()
      The profile that has changed, if any
      int hashCode()  
      void setGroup​(java.lang.String group)
      The parent group for the key.
      void setKey​(java.lang.String key)
      The configuration key that has been modified.
      void setNewValue​(java.lang.String newValue)
      The new value of the entry, null if the entry has been unset.
      void setOldValue​(java.lang.String oldValue)
      The previous value of the entry.
      void setProfile​(java.lang.String profile)
      The profile that has changed, if any
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • ConfigChanged

        public ConfigChanged()
    • Method Detail

      • getGroup

        public java.lang.String getGroup()
        The parent group for the key.

        Typically set to the name of a plugin to prevent potential collisions between other key values that may have the same name.

      • getProfile

        @Nullable
        public java.lang.String getProfile()
        The profile that has changed, if any
        See Also:
        RuneScapeProfile.getKey()
      • getKey

        public java.lang.String getKey()
        The configuration key that has been modified.
      • getOldValue

        public java.lang.String getOldValue()
        The previous value of the entry.
      • getNewValue

        public java.lang.String getNewValue()
        The new value of the entry, null if the entry has been unset.
      • setGroup

        public void setGroup​(java.lang.String group)
        The parent group for the key.

        Typically set to the name of a plugin to prevent potential collisions between other key values that may have the same name.

      • setProfile

        public void setProfile​(@Nullable
                               java.lang.String profile)
        The profile that has changed, if any
        See Also:
        RuneScapeProfile.getKey()
      • setKey

        public void setKey​(java.lang.String key)
        The configuration key that has been modified.
      • setOldValue

        public void setOldValue​(java.lang.String oldValue)
        The previous value of the entry.
      • setNewValue

        public void setNewValue​(java.lang.String newValue)
        The new value of the entry, null if the entry has been unset.
      • equals

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

        protected boolean canEqual​(java.lang.Object other)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object