Lines Matching defs:IpPrefix
48 public final class IpPrefix implements Parcelable {
55 "IpPrefix has " + address.length + " bytes which is neither 4 nor 16");
61 * Constructs a new {@code IpPrefix} from a byte array containing an IPv4 or IPv6 address in
70 public IpPrefix(byte[] address, int prefixLength) {
77 * Constructs a new {@code IpPrefix} from an IPv4 or IPv6 address and a prefix length. Silently
85 public IpPrefix(InetAddress address, int prefixLength) {
94 * Constructs a new IpPrefix from a string such as "192.0.2.1/24" or "2001:db8::1/64".
102 public IpPrefix(String prefix) {
114 * Compares this {@code IpPrefix} object against the specified object in {@code obj}. Two
122 if (!(obj instanceof IpPrefix)) {
125 IpPrefix that = (IpPrefix) obj;
166 * Returns the prefix length of this {@code IpPrefix}.
204 * Returns a string representation of this {@code IpPrefix}.
213 throw new IllegalStateException("IpPrefix with invalid address! Shouldn't happen.", e);
235 public static final Creator<IpPrefix> CREATOR =
236 new Creator<IpPrefix>() {
237 public IpPrefix createFromParcel(Parcel in) {
240 return new IpPrefix(address, prefixLength);
243 public IpPrefix[] newArray(int size) {
244 return new IpPrefix[size];