Class NetworkInterface

    • Method Detail

      • ipv4Address

        public final String ipv4Address()

        The Internet Protocol version 4 (IPv4) address of the interface.

        Returns:
        The Internet Protocol version 4 (IPv4) address of the interface.
      • macAddress

        public final String macAddress()

        The Media Access Control (MAC) address of the interface.

        This is currently unsupported and will not be returned in output.

        Returns:
        The Media Access Control (MAC) address of the interface.

        This is currently unsupported and will not be returned in output.

      • ipv6Address

        public final String ipv6Address()

        The Internet Protocol version 6 (IPv6) address of the interface. Currently not supported.

        Returns:
        The Internet Protocol version 6 (IPv6) address of the interface. Currently not supported.
      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class Object
      • equals

        public final boolean equals​(Object obj)
        Overrides:
        equals in class Object
      • toString

        public final String toString()
        Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
        Overrides:
        toString in class Object
      • getValueForField

        public final <T> Optional<T> getValueForField​(String fieldName,
                                                      Class<T> clazz)