public boolean contains(InetAddress address) {
        BigInteger addressInteger = new CidrBlock(address).addressInteger;
        return firstAddressInteger().compareTo(addressInteger) <= 0 &&
               addressInteger.compareTo(lastAddressInteger()) <= 0;
    }
@return true iff the address is in this CIDR network.
vespajlib/src/main/java/ai/vespa/net/CidrBlock.java