Example usage for org.apache.commons.collections15 SetUtils hashCodeForSet

List of usage examples for org.apache.commons.collections15 SetUtils hashCodeForSet

Introduction

In this page you can find the example usage for org.apache.commons.collections15 SetUtils hashCodeForSet.

Prototype

public static int hashCodeForSet(final Collection set) 

Source Link

Document

Generates a hash code using the algorithm specified in java.util.Set#hashCode() .

Usage

From source file:de.dhke.projects.cutil.collections.MultiMapUtil.java

public static <K, V> int deepHashCode(Map.Entry<K, Collection<V>> entry) {
    return entry.getKey().hashCode() + SetUtils.hashCodeForSet(entry.getValue());
}

From source file:de.dhke.projects.cutil.collections.frozen.FrozenSortedList.java

@Override
public int hashCode() {
    return SetUtils.hashCodeForSet(_elements);
}

From source file:de.dhke.projects.cutil.collections.frozen.FrozenFlat3Set.java

@Override
public int hashCode() {
    if (_hashValue == 0)
        _hashValue = SetUtils.hashCodeForSet(this);
    return _hashValue;
}

From source file:de.dhke.projects.cutil.collections.frozen.FrozenSet.java

@Override
public int hashCode() {
    if (_hashValue == 0)
        _hashValue = SetUtils.hashCodeForSet(_baseSet);
    return _hashValue;
}

From source file:de.uniba.wiai.kinf.pw.projects.lillytab.terms.impl.DLDataUnion.java

@Override
public int hashCode() {
    /* no need to override hashcode */
    return super.hashCode() + SetUtils.hashCodeForSet(this);
}

From source file:logicProteinHypernetwork.networkStates.MinimalNetworkState.java

/**
 * A hash code ensuring consistency with equals.
 * //from   w ww  .ja  v a2s .c om
 * @return int the hash code
 */
@Override
public int hashCode() {
    return SetUtils.hashCodeForSet(necessary) ^ SetUtils.hashCodeForSet(impossible);
}

From source file:de.uniba.wiai.kinf.pw.projects.lillytab.reasoner.abox.ABoxNode.java

@Override
public int deepHashCode() {
    int hashcode = 147;
    hashcode += SetUtils.hashCodeForSet(getTerms());
    hashcode += _raBox.deepHashCode();/*  www . j a v  a2s.c o  m*/
    return hashcode;
}