Java Code Examples for org.apache.commons.lang.ObjectUtils#hashCode()

The following examples show how to use org.apache.commons.lang.ObjectUtils#hashCode() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: ExtendedMessageFormat.java    From lams with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Return the hashcode.
 *
 * @return the hashcode
 * @since 2.6
 */
public int hashCode() {
    int result = super.hashCode();
    result = HASH_SEED * result + ObjectUtils.hashCode(registry);
    result = HASH_SEED * result + ObjectUtils.hashCode(toPattern);
    return result;
}
 
Example 2
Source File: RangerAccessResourceImpl.java    From ranger with Apache License 2.0 5 votes vote down vote up
@Override
public int hashCode() {
	int ret = 7;

	ret = 31 * ret + ObjectUtils.hashCode(ownerUser);
	ret = 31 * ret + ObjectUtils.hashCode(elements);

	return ret;
}
 
Example 3
Source File: DefaultArtifactPom.java    From pushfish-android with BSD 2-Clause "Simplified" License 4 votes vote down vote up
@Override
public int hashCode() {
    return ObjectUtils.hashCode(type) ^ ObjectUtils.hashCode(classifier);
}
 
Example 4
Source File: DefaultArtifactPom.java    From pushfish-android with BSD 2-Clause "Simplified" License 4 votes vote down vote up
@Override
public int hashCode() {
    return ObjectUtils.hashCode(type) ^ ObjectUtils.hashCode(classifier);
}
 
Example 5
Source File: Pair.java    From subsonic with GNU General Public License v3.0 4 votes vote down vote up
@Override
public int hashCode() {
    return ObjectUtils.hashCode(first) * ObjectUtils.hashCode(second);
}
 
Example 6
Source File: DefaultArtifactPom.java    From Pushjet-Android with BSD 2-Clause "Simplified" License 4 votes vote down vote up
@Override
public int hashCode() {
    return ObjectUtils.hashCode(type) ^ ObjectUtils.hashCode(classifier);
}
 
Example 7
Source File: DefaultArtifactPom.java    From Pushjet-Android with BSD 2-Clause "Simplified" License 4 votes vote down vote up
@Override
public int hashCode() {
    return ObjectUtils.hashCode(type) ^ ObjectUtils.hashCode(classifier);
}
 
Example 8
Source File: DashboardComponent.java    From lutece-core with BSD 3-Clause "New" or "Revised" License 4 votes vote down vote up
/**
 *
 * {@inheritDoc}
 */
@Override
public int hashCode( )
{
    return ObjectUtils.hashCode( this.getName( ) );
}
 
Example 9
Source File: SimpleHierarchyProvider.java    From rice with Educational Community License v2.0 4 votes vote down vote up
public int hashCode() {
    return ObjectUtils.hashCode(id);
}
 
Example 10
Source File: PlanetPublisher.java    From openhab1-addons with Eclipse Public License 2.0 4 votes vote down vote up
/**
 * Returns true, if the cached value is equal to the new value.
 */
private boolean equalsCachedValue(Object value, Item item) {
    int cachedValueHashCode = ObjectUtils.hashCode(itemCache.get(item.getName()));
    int valueHashCode = ObjectUtils.hashCode(value);
    return cachedValueHashCode == valueHashCode;
}