Methods Summary |
---|
public int | describeContents()Implement the Parcelable interface
return 0;
|
public boolean | equals(java.lang.Object o)
if (o == this) {
return true;
}
if (!(o instanceof IpConfiguration)) {
return false;
}
IpConfiguration other = (IpConfiguration) o;
return this.ipAssignment == other.ipAssignment &&
this.proxySettings == other.proxySettings &&
Objects.equals(this.staticIpConfiguration, other.staticIpConfiguration) &&
Objects.equals(this.httpProxy, other.httpProxy);
|
public ProxyInfo | getHttpProxy()
return httpProxy;
|
public android.net.IpConfiguration$IpAssignment | getIpAssignment()
return ipAssignment;
|
public android.net.IpConfiguration$ProxySettings | getProxySettings()
return proxySettings;
|
public android.net.StaticIpConfiguration | getStaticIpConfiguration()
return staticIpConfiguration;
|
public int | hashCode()
return 13 + (staticIpConfiguration != null ? staticIpConfiguration.hashCode() : 0) +
17 * ipAssignment.ordinal() +
47 * proxySettings.ordinal() +
83 * httpProxy.hashCode();
|
private void | init(android.net.IpConfiguration$IpAssignment ipAssignment, android.net.IpConfiguration$ProxySettings proxySettings, android.net.StaticIpConfiguration staticIpConfiguration, ProxyInfo httpProxy)
this.ipAssignment = ipAssignment;
this.proxySettings = proxySettings;
this.staticIpConfiguration = (staticIpConfiguration == null) ?
null : new StaticIpConfiguration(staticIpConfiguration);
this.httpProxy = (httpProxy == null) ?
null : new ProxyInfo(httpProxy);
|
public void | setHttpProxy(ProxyInfo httpProxy)
this.httpProxy = httpProxy;
|
public void | setIpAssignment(android.net.IpConfiguration$IpAssignment ipAssignment)
this.ipAssignment = ipAssignment;
|
public void | setProxySettings(android.net.IpConfiguration$ProxySettings proxySettings)
this.proxySettings = proxySettings;
|
public void | setStaticIpConfiguration(android.net.StaticIpConfiguration staticIpConfiguration)
this.staticIpConfiguration = staticIpConfiguration;
|
public java.lang.String | toString()
StringBuilder sbuf = new StringBuilder();
sbuf.append("IP assignment: " + ipAssignment.toString());
sbuf.append("\n");
if (staticIpConfiguration != null) {
sbuf.append("Static configuration: " + staticIpConfiguration.toString());
sbuf.append("\n");
}
sbuf.append("Proxy settings: " + proxySettings.toString());
sbuf.append("\n");
if (httpProxy != null) {
sbuf.append("HTTP proxy: " + httpProxy.toString());
sbuf.append("\n");
}
return sbuf.toString();
|
public void | writeToParcel(android.os.Parcel dest, int flags)Implement the Parcelable interface
dest.writeString(ipAssignment.name());
dest.writeString(proxySettings.name());
dest.writeParcelable(staticIpConfiguration, flags);
dest.writeParcelable(httpProxy, flags);
|