class InetAddressBlock {

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }

        if (!(obj instanceof InetAddressBlock)) {
            return false;
        }

        InetAddressBlock block = (InetAddressBlock)obj;

        return block.mask == this.mask && Arrays.equals(block.bytes, this.bytes);
    }

    public  InetAddressBlock(InetAddress address, int bits);

}