code: 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;
    }
docs: 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