Home | History | Annotate | Download | only in net

Lines Matching refs:address

29  * This class represents a Network Interface address. In short it's an
30 * IP address, a subnet mask and a broadcast address when the address is
31 * an IPv4 one. An IP address and a network prefix length in the case
32 * of IPv6 address.
38 private InetAddress address = null;
50 InterfaceAddress(InetAddress address, Inet4Address broadcast, InetAddress netmask) {
51 this.address = address;
57 * Counts the prefix length for the netmask address.
59 * A valid netmask address must start with a continuous sequence of 1, followed by a continuous
72 * Returns an {@code InetAddress} for this address.
74 * @return the {@code InetAddress} for this address.
77 return address;
81 * Returns an {@code InetAddress} for the broadcast address
84 * Only IPv4 networks have broadcast address therefore, in the case
88 * address or {@code null} if there is no broadcast address.
95 * Returns the network prefix length for this address. This is also known
102 * subnet of that address.
111 * not {@code null} and it represents the same interface address as
115 * address if the InetAddress, the prefix length and the broadcast are
128 if ( !(address == null ? cmp.address == null : address.equals(cmp.address)) )
138 * Returns a hashcode for this Interface address.
140 * @return a hash code value for this Interface address.
143 return address.hashCode() + ((broadcast != null) ? broadcast.hashCode() : 0) + maskLength;
147 * Converts this Interface address to a {@code String}. The
148 * string returned is of the form: InetAddress / prefix length [ broadcast address ].
150 * @return a string representation of this Interface address.
153 return address + "/" + maskLength + " [" + broadcast + "]";