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 * Returns an <code>InetAddress</code> for this address.
52 * @return the <code>InetAddress</code> for this address.
55 return address;
59 * Returns an <code>InetAddress</code> for the brodcast address
62 * Only IPv4 networks have broadcast address therefore, in the case
66 * address or <code>null</code> if there is no broadcast address.
73 * Returns the network prefix length for this address. This is also known
80 * subnet of that address.
89 * not <code>null</code> and it represents the same interface address as
93 * address if the InetAddress, the prefix length and the broadcast are
106 if ( !(address == null ? cmp.address == null : address.equals(cmp.address)) )
116 * Returns a hashcode for this Interface address.
118 * @return a hash code value for this Interface address.
121 return address.hashCode() + ((broadcast != null) ? broadcast.hashCode() : 0) + maskLength;
125 * Converts this Interface address to a <code>String</code>. The
126 * string returned is of the form: InetAddress / prefix length [ broadcast address ].
128 * @return a string representation of this Interface address.
131 return address + "/" + maskLength + " [" + broadcast + "]";