android/guava/src/com/google/common/net/InetAddresses.java
public static boolean isMaximum(InetAddress address) {
    byte[] addr = address.getAddress();
    for (int i = 0; i < addr.length; i++) {
      if (addr[i] != (byte) 0xff) {
        return false;
      }
    }
    return true;
  }
public static boolean isMaximum(InetAddress address) {
    byte[] addr = address.getAddress();
    for (int i = 0; i < addr.length; i++) {
      if (addr[i] != (byte) 0xff) {
        return false;
      }
    }
    return true;
  }
public static boolean isMaximum ( InetAddress address ) { byte [ ] addr = address . getAddress ( ) ; for ( int i = 0 ; i < addr . length ; i ++ ) { if ( addr [ i ] != ( byte ) 0xff ) { return false ; } } return true ; }
Returns true if the InetAddress is either 255.255.255.255 for IPv4 or
ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff for IPv6.

@return true if the InetAddress is either 255.255.255.255 for IPv4 or
ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff for IPv6
@since 10.0
Returns true if the InetAddress is either 255 . 255 . 255 . 255 for IPv4 or ffff : ffff : ffff : ffff : ffff : ffff : ffff : ffff for IPv6 .