本文整理了Java中org.apache.commons.httpclient.URI.equals()
方法的一些代码示例,展示了URI.equals()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。URI.equals()
方法的具体详情如下:
包路径:org.apache.commons.httpclient.URI
类名称:URI
方法名:equals
[英]Test an object if this URI is equal to another.
[中]如果此URI等于另一个URI,则测试一个对象。
代码示例来源:origin: commons-httpclient/commons-httpclient
if (!equals(_scheme, another._scheme)) {
return false;
if (!equals(_opaque, another._opaque)) {
return false;
if (!equals(_authority, another._authority)) {
return false;
if (!equals(_path, another._path)) {
return false;
if (!equals(_query, another._query)) {
return false;
if (!equals(_fragment, another._fragment)) {
return false;
代码示例来源:origin: commons-httpclient/commons-httpclient
/**
* Compare this URI to another object.
*
* @param obj the object to be compared.
* @return 0, if it's same,
* -1, if failed, first being compared with in the authority component
* @throws ClassCastException not URI argument
*/
public int compareTo(Object obj) throws ClassCastException {
URI another = (URI) obj;
if (!equals(_authority, another.getRawAuthority())) {
return -1;
}
return toString().compareTo(another.toString());
}
代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.commons-httpclient
if (!equals(_scheme, another._scheme)) {
return false;
if (!equals(_opaque, another._opaque)) {
return false;
if (!equals(_authority, another._authority)) {
return false;
if (!equals(_path, another._path)) {
return false;
if (!equals(_query, another._query)) {
return false;
if (!equals(_fragment, another._fragment)) {
return false;
代码示例来源:origin: org.apache.commons/httpclient
if (!equals(_scheme, another._scheme)) {
return false;
if (!equals(_opaque, another._opaque)) {
return false;
if (!equals(_authority, another._authority)) {
return false;
if (!equals(_path, another._path)) {
return false;
if (!equals(_query, another._query)) {
return false;
if (!equals(_fragment, another._fragment)) {
return false;
代码示例来源:origin: org.wso2.commons-httpclient/commons-httpclient
if (!equals(_scheme, another._scheme)) {
return false;
if (!equals(_opaque, another._opaque)) {
return false;
if (!equals(_authority, another._authority)) {
return false;
if (!equals(_path, another._path)) {
return false;
if (!equals(_query, another._query)) {
return false;
if (!equals(_fragment, another._fragment)) {
return false;
代码示例来源:origin: org.zaproxy/zap
if (!equals(_scheme, another._scheme)) {
return false;
if (!equals(_opaque, another._opaque)) {
return false;
if (!equals(_authority, another._authority)) {
return false;
if (!equals(_path, another._path)) {
return false;
if (!equals(_query, another._query)) {
return false;
if (!equals(_fragment, another._fragment)) {
return false;
代码示例来源:origin: org.apache.commons/com.springsource.org.apache.commons.httpclient
if (!equals(_scheme, another._scheme)) {
return false;
if (!equals(_opaque, another._opaque)) {
return false;
if (!equals(_authority, another._authority)) {
return false;
if (!equals(_path, another._path)) {
return false;
if (!equals(_query, another._query)) {
return false;
if (!equals(_fragment, another._fragment)) {
return false;
代码示例来源:origin: org.wso2.commons-httpclient/commons-httpclient
/**
* Compare this URI to another object.
*
* @param obj the object to be compared.
* @return 0, if it's same,
* -1, if failed, first being compared with in the authority component
* @throws ClassCastException not URI argument
*/
public int compareTo(Object obj) throws ClassCastException {
URI another = (URI) obj;
if (!equals(_authority, another.getRawAuthority())) {
return -1;
}
return toString().compareTo(another.toString());
}
代码示例来源:origin: org.apache.commons/com.springsource.org.apache.commons.httpclient
/**
* Compare this URI to another object.
*
* @param obj the object to be compared.
* @return 0, if it's same,
* -1, if failed, first being compared with in the authority component
* @throws ClassCastException not URI argument
*/
public int compareTo(Object obj) throws ClassCastException {
URI another = (URI) obj;
if (!equals(_authority, another.getRawAuthority())) {
return -1;
}
return toString().compareTo(another.toString());
}
代码示例来源:origin: org.apache.commons/httpclient
/**
* Compare this URI to another object.
*
* @param obj the object to be compared.
* @return 0, if it's same,
* -1, if failed, first being compared with in the authority component
* @throws ClassCastException not URI argument
*/
public int compareTo(Object obj) throws ClassCastException {
URI another = (URI) obj;
if (!equals(_authority, another.getRawAuthority())) {
return -1;
}
return toString().compareTo(another.toString());
}
代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.commons-httpclient
/**
* Compare this URI to another object.
*
* @param obj the object to be compared.
* @return 0, if it's same,
* -1, if failed, first being compared with in the authority component
* @throws ClassCastException not URI argument
*/
public int compareTo(Object obj) throws ClassCastException {
URI another = (URI) obj;
if (!equals(_authority, another.getRawAuthority())) {
return -1;
}
return toString().compareTo(another.toString());
}
代码示例来源:origin: org.zaproxy/zap
/**
* Compare this URI to another object.
*
* @param obj the object to be compared.
* @return 0, if it's same,
* -1, if failed, first being compared with in the authority component
* @throws ClassCastException not URI argument
*/
@Override
public int compareTo(Object obj) throws ClassCastException {
URI another = (URI) obj;
if (!equals(_authority, another.getRawAuthority())) {
return -1;
}
return toString().compareTo(another.toString());
}
内容来源于网络,如有侵权,请联系作者删除!