This commit is contained in:
Jesper Wilhelmsson 2020-07-03 19:05:00 +02:00
commit 4922a35c6a
4 changed files with 19 additions and 8 deletions

View file

@ -576,7 +576,13 @@ public final class NetworkInterface {
* as this object.
* <p>
* Two instances of {@code NetworkInterface} represent the same
* NetworkInterface if both name and addrs are the same for both.
* NetworkInterface if both the name and the set of {@code InetAddress}es
* bound to the interfaces are equal.
*
* @apiNote two {@code NetworkInterface} objects referring to the same
* underlying interface may not compare equal if the addresses
* of the underlying interface are being dynamically updated by
* the system.
*
* @param obj the object to compare against.
* @return {@code true} if the objects are the same;