com.hazelcast.config

## Class InterfacesConfig

- java.lang.Object
- - com.hazelcast.config.InterfacesConfig

-     public class InterfacesConfig
      extends Object

  Contains the configuration for Interfaces.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `InterfacesConfig()`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `InterfacesConfig` | `addInterface(String ip)` Adds a new interface
    `InterfacesConfig` | `clear()` clears all interfaces.
    `boolean` | `equals(Object o)`
    `Collection<String>` | `getInterfaces()`
    `int` | `hashCode()`
    `boolean` | `isEnabled()`
    `InterfacesConfig` | `setEnabled(boolean enabled)`
    `InterfacesConfig` | `setInterfaces(Collection<String> interfaces)` Adds a collection of interfaces.
    `String` | `toString()`

    - ### Methods inherited from class java.lang.Object

      `clone, finalize, getClass, notify, notifyAll, wait, wait, wait`

- - ### 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(String ip)

      Adds a new interface
      Parameters:
        `ip` - the added interface

    - #### clear

          public InterfacesConfig clear()

      clears all interfaces.

    - #### getInterfaces

          public Collection<String> getInterfaces()

      Returns:
        a read-only collection of interfaces

    - #### setInterfaces

          public InterfacesConfig setInterfaces(Collection<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(Object o)

      Overrides:
        `equals` in class `Object`

    - #### hashCode

          public final int hashCode()

      Overrides:
        `hashCode` in class `Object`

    - #### toString

          public String toString()

      Overrides:
        `toString` in class `Object`

Copyright © 2018. All rights reserved.