Lines Matching defs:prefixLength
50 private final int prefixLength;
57 NetworkUtils.maskRawAddress(address, prefixLength);
66 * @param prefixLength the prefix length. Must be >= 0 and <= (32 or 128) (IPv4 or IPv6).
70 public IpPrefix(byte[] address, int prefixLength) {
72 this.prefixLength = prefixLength;
82 * @param prefixLength the prefix length. Must be >= 0 and <= (32 or 128) (IPv4 or IPv6).
85 public IpPrefix(InetAddress address, int prefixLength) {
89 this.prefixLength = prefixLength;
109 this.prefixLength = ipAndMask.second;
115 * objects are equal if they have the same startAddress and prefixLength.
126 return Arrays.equals(this.address, that.address) && this.prefixLength == that.prefixLength;
136 return Arrays.hashCode(address) + 11 * prefixLength;
171 return prefixLength;
185 NetworkUtils.maskRawAddress(addrBytes, prefixLength);
210 return InetAddress.getByAddress(address).getHostAddress() + "/" + prefixLength;
229 dest.writeInt(prefixLength);
239 int prefixLength = in.readInt();
240 return new IpPrefix(address, prefixLength);