Lines Matching defs:prefixLength
62 private int prefixLength;
130 private void init(InetAddress address, int prefixLength, int flags, int scope) {
133 prefixLength < 0 ||
134 (address instanceof Inet4Address && prefixLength > 32) ||
135 (prefixLength > 128)) {
137 "/" + prefixLength);
140 this.prefixLength = prefixLength;
149 * @param prefixLength The prefix length.
155 public LinkAddress(InetAddress address, int prefixLength, int flags, int scope) {
156 init(address, prefixLength, flags, scope);
163 * @param prefixLength The prefix length.
166 public LinkAddress(InetAddress address, int prefixLength) {
167 this(address, prefixLength, 0, 0);
215 return address.getHostAddress() + "/" + prefixLength;
234 this.prefixLength == linkAddress.prefixLength &&
244 return address.hashCode() + 11 * prefixLength + 19 * flags + 43 * scope;
259 return address.equals(other.address) && prefixLength == other.prefixLength;
273 return prefixLength;
328 dest.writeInt(prefixLength);
347 int prefixLength = in.readInt();
350 return new LinkAddress(address, prefixLength, flags, scope);