Class InterfacesConfig


  • public class InterfacesConfig
    extends java.lang.Object
    Contains the configuration for Interfaces.
    • Constructor Detail

      • InterfacesConfig

        public InterfacesConfig()
    • Method Detail

      • isEnabled

        public boolean isEnabled()
        Returns:
        true if the interface is enabled, false otherwise
      • setEnabled

        public InterfacesConfig setEnabled​(boolean enabled)
        Parameters:
        enabled - the enabled interface to set
      • addInterface

        public InterfacesConfig addInterface​(java.lang.String ip)
        Adds a new interface
        Parameters:
        ip - the added interface
      • getInterfaces

        public java.util.Collection<java.lang.String> getInterfaces()
        Returns:
        a read-only collection of interfaces
      • setInterfaces

        public InterfacesConfig setInterfaces​(java.util.Collection<java.lang.String> interfaces)
        Adds a collection of interfaces. Clears the current collection and then adds all entries of new collection.
        Parameters:
        interfaces - the interfaces to set
      • equals

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

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

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