for (byte b : hostAddress.getAddress()) {
int i = b;
if (i < 0) {
i += 256;
}
bufferAddress.append(new LPadTransformer(8, '0').transform(Integer.toBinaryString(i)));
}
for (byte b : networkAddress.getAddress()) {
int i = b;
if (i < 0) {
i += 256;
}
bufferAddress.append(new LPadTransformer(8, '0').transform(Integer.toBinaryString(i)));
}
return bufferNetwork.toString().substring(0, mask).equals(bufferAddress.toString().subSequence(0, mask));
}