本文整理匯總了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);
}