当前位置: 首页>>代码示例>>Java>>正文


Java LangUtils.hashCode方法代码示例

本文整理汇总了Java中org.apache.http.util.LangUtils.hashCode方法的典型用法代码示例。如果您正苦于以下问题:Java LangUtils.hashCode方法的具体用法?Java LangUtils.hashCode怎么用?Java LangUtils.hashCode使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.apache.http.util.LangUtils的用法示例。


在下文中一共展示了LangUtils.hashCode方法的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: hashCode

import org.apache.http.util.LangUtils; //导入方法依赖的package包/类
/**
 * Generates a hash code for this tracked route.
 * Route trackers are modifiable and should therefore not be used
 * as lookup keys. Use {@link #toRoute toRoute} to obtain an
 * unmodifiable representation of the tracked route.
 *
 * @return  the hash code
 */
@Override
public final int hashCode() {
    int hash = LangUtils.HASH_SEED;
    hash = LangUtils.hashCode(hash, this.targetHost);
    hash = LangUtils.hashCode(hash, this.localAddress);
    if (this.proxyChain != null) {
        for (int i = 0; i < this.proxyChain.length; i++) {
            hash = LangUtils.hashCode(hash, this.proxyChain[i]);
        }
    }
    hash = LangUtils.hashCode(hash, this.connected);
    hash = LangUtils.hashCode(hash, this.secure);
    hash = LangUtils.hashCode(hash, this.tunnelled);
    hash = LangUtils.hashCode(hash, this.layered);
    return hash;
}
 
开发者ID:lamsfoundation,项目名称:lams,代码行数:25,代码来源:RouteTracker.java

示例2: hashCode

import org.apache.http.util.LangUtils; //导入方法依赖的package包/类
/**
 * Generates a hash code for this route.
 *
 * @return  the hash code
 */
@Override
public final int hashCode() {
    int hash = LangUtils.HASH_SEED;
    hash = LangUtils.hashCode(hash, this.targetHost);
    hash = LangUtils.hashCode(hash, this.localAddress);
    if (this.proxyChain != null) {
        for (final HttpHost element : this.proxyChain) {
            hash = LangUtils.hashCode(hash, element);
        }
    }
    hash = LangUtils.hashCode(hash, this.secure);
    hash = LangUtils.hashCode(hash, this.tunnelled);
    hash = LangUtils.hashCode(hash, this.layered);
    return hash;
}
 
开发者ID:MyPureCloud,项目名称:purecloud-iot,代码行数:21,代码来源:HttpRoute.java

示例3: hashCode

import org.apache.http.util.LangUtils; //导入方法依赖的package包/类
/**
 * Generates a hash code for this tracked route.
 * Route trackers are modifiable and should therefore not be used
 * as lookup keys. Use {@link #toRoute toRoute} to obtain an
 * unmodifiable representation of the tracked route.
 *
 * @return  the hash code
 */
@Override
public final int hashCode() {
    int hash = LangUtils.HASH_SEED;
    hash = LangUtils.hashCode(hash, this.targetHost);
    hash = LangUtils.hashCode(hash, this.localAddress);
    if (this.proxyChain != null) {
        for (final HttpHost element : this.proxyChain) {
            hash = LangUtils.hashCode(hash, element);
        }
    }
    hash = LangUtils.hashCode(hash, this.connected);
    hash = LangUtils.hashCode(hash, this.secure);
    hash = LangUtils.hashCode(hash, this.tunnelled);
    hash = LangUtils.hashCode(hash, this.layered);
    return hash;
}
 
开发者ID:MyPureCloud,项目名称:purecloud-iot,代码行数:25,代码来源:RouteTracker.java

示例4: hashCode

import org.apache.http.util.LangUtils; //导入方法依赖的package包/类
@Override
public int hashCode() {
    int hash = LangUtils.HASH_SEED;
    hash = LangUtils.hashCode(hash, this.principal);
    hash = LangUtils.hashCode(hash, this.workstation);
    return hash;
}
 
开发者ID:lamsfoundation,项目名称:lams,代码行数:8,代码来源:NTCredentials.java

示例5: hashCode

import org.apache.http.util.LangUtils; //导入方法依赖的package包/类
@Override
public int hashCode() {
    int hash = LangUtils.HASH_SEED;
    hash = LangUtils.hashCode(hash, this.username);
    hash = LangUtils.hashCode(hash, this.domain);
    return hash;
}
 
开发者ID:lamsfoundation,项目名称:lams,代码行数:8,代码来源:NTUserPrincipal.java

示例6: hashCode

import org.apache.http.util.LangUtils; //导入方法依赖的package包/类
/**
 * @see java.lang.Object#hashCode()
 */
@Override
public int hashCode() {
    int hash = LangUtils.HASH_SEED;
    hash = LangUtils.hashCode(hash, this.host);
    hash = LangUtils.hashCode(hash, this.port);
    hash = LangUtils.hashCode(hash, this.realm);
    hash = LangUtils.hashCode(hash, this.scheme);
    return hash;
}
 
开发者ID:lamsfoundation,项目名称:lams,代码行数:13,代码来源:AuthScope.java

示例7: hashCode

import org.apache.http.util.LangUtils; //导入方法依赖的package包/类
/**
 * Generates a hash code for this route.
 *
 * @return  the hash code
 */
@Override
public final int hashCode() {
    int hash = LangUtils.HASH_SEED;
    hash = LangUtils.hashCode(hash, this.targetHost);
    hash = LangUtils.hashCode(hash, this.localAddress);
    for (int i = 0; i < this.proxyChain.length; i++) {
        hash = LangUtils.hashCode(hash, this.proxyChain[i]);
    }
    hash = LangUtils.hashCode(hash, this.secure);
    hash = LangUtils.hashCode(hash, this.tunnelled);
    hash = LangUtils.hashCode(hash, this.layered);
    return hash;
}
 
开发者ID:lamsfoundation,项目名称:lams,代码行数:19,代码来源:HttpRoute.java

示例8: hashCode

import org.apache.http.util.LangUtils; //导入方法依赖的package包/类
@Override
public int hashCode() {
    int hash = LangUtils.HASH_SEED;
    hash = LangUtils.hashCode(hash, this.defaultPort);
    hash = LangUtils.hashCode(hash, this.name);
    hash = LangUtils.hashCode(hash, this.layered);
    return hash;
}
 
开发者ID:lamsfoundation,项目名称:lams,代码行数:9,代码来源:Scheme.java

示例9: hashCode

import org.apache.http.util.LangUtils; //导入方法依赖的package包/类
@Override
public int hashCode() {
    int hash = LangUtils.HASH_SEED;
    hash = LangUtils.hashCode(hash, this.name);
    hash = LangUtils.hashCode(hash, this.value);
    for (int i = 0; i < this.parameters.length; i++) {
        hash = LangUtils.hashCode(hash, this.parameters[i]);
    }
    return hash;
}
 
开发者ID:lamsfoundation,项目名称:lams,代码行数:11,代码来源:BasicHeaderElement.java

示例10: hashCode

import org.apache.http.util.LangUtils; //导入方法依赖的package包/类
@Override
public int hashCode() {
    int hash = LangUtils.HASH_SEED;
    hash = LangUtils.hashCode(hash, this.name);
    hash = LangUtils.hashCode(hash, this.value);
    return hash;
}
 
开发者ID:lamsfoundation,项目名称:lams,代码行数:8,代码来源:BasicNameValuePair.java

示例11: hashCode

import org.apache.http.util.LangUtils; //导入方法依赖的package包/类
/**
 * @see java.lang.Object#hashCode()
 */
@Override
public int hashCode() {
    int hash = LangUtils.HASH_SEED;
    hash = LangUtils.hashCode(hash, this.lcHostname);
    hash = LangUtils.hashCode(hash, this.port);
    hash = LangUtils.hashCode(hash, this.schemeName);
    return hash;
}
 
开发者ID:lamsfoundation,项目名称:lams,代码行数:12,代码来源:HttpHost.java

示例12: hashCode

import org.apache.http.util.LangUtils; //导入方法依赖的package包/类
/**
 * Obtains a hash code for this scheme.
 *
 * @return  the hash code
 */
@Override
public int hashCode() {
    int hash = LangUtils.HASH_SEED;
    hash = LangUtils.hashCode(hash, this.defaultPort);
    hash = LangUtils.hashCode(hash, this.name);
    hash = LangUtils.hashCode(hash, this.layered);
    hash = LangUtils.hashCode(hash, this.socketFactory);
    return hash;
}
 
开发者ID:tdopires,项目名称:cJUnit-mc626,代码行数:15,代码来源:Scheme.java

示例13: hashCode

import org.apache.http.util.LangUtils; //导入方法依赖的package包/类
@Override
public int hashCode() {
    int hash = LangUtils.HASH_SEED;
    hash = LangUtils.hashCode(hash, this.username);
    return hash;
}
 
开发者ID:lamsfoundation,项目名称:lams,代码行数:7,代码来源:BasicUserPrincipal.java


注:本文中的org.apache.http.util.LangUtils.hashCode方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。