本文整理汇总了Java中com.squareup.okhttp.internal.Util.equal方法的典型用法代码示例。如果您正苦于以下问题:Java Util.equal方法的具体用法?Java Util.equal怎么用?Java Util.equal使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.squareup.okhttp.internal.Util
的用法示例。
在下文中一共展示了Util.equal方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: equals
import com.squareup.okhttp.internal.Util; //导入方法依赖的package包/类
public boolean equals(Object other) {
if (!(other instanceof Address)) {
return false;
}
Address that = (Address) other;
if (this.url.equals(that.url) && this.dns.equals(that.dns) && this.authenticator.equals
(that.authenticator) && this.protocols.equals(that.protocols) && this
.connectionSpecs.equals(that.connectionSpecs) && this.proxySelector.equals(that
.proxySelector) && Util.equal(this.proxy, that.proxy) && Util.equal(this
.sslSocketFactory, that.sslSocketFactory) && Util.equal(this.hostnameVerifier,
that.hostnameVerifier) && Util.equal(this.certificatePinner, that
.certificatePinner)) {
return true;
}
return false;
}
示例2: cancel
import com.squareup.okhttp.internal.Util; //导入方法依赖的package包/类
public synchronized void cancel(Object tag) {
for (AsyncCall call : this.readyCalls) {
if (Util.equal(tag, call.tag())) {
call.cancel();
}
}
for (AsyncCall call2 : this.runningCalls) {
if (Util.equal(tag, call2.tag())) {
call2.get().canceled = true;
HttpEngine engine = call2.get().engine;
if (engine != null) {
engine.cancel();
}
}
}
for (Call call3 : this.executedCalls) {
if (Util.equal(tag, call3.tag())) {
call3.cancel();
}
}
}
示例3: varyMatches
import com.squareup.okhttp.internal.Util; //导入方法依赖的package包/类
public static boolean varyMatches(Response cachedResponse, Headers cachedRequest, Request
newRequest) {
for (String field : varyFields(cachedResponse)) {
if (!Util.equal(cachedRequest.values(field), newRequest.headers(field))) {
return false;
}
}
return true;
}
示例4: equals
import com.squareup.okhttp.internal.Util; //导入方法依赖的package包/类
public boolean equals(Object o) {
return (o instanceof Challenge) && Util.equal(this.scheme, ((Challenge) o).scheme) &&
Util.equal(this.realm, ((Challenge) o).realm);
}