Search in sources :

Example 36 with HashCodeBuilder

use of org.apache.commons.lang.builder.HashCodeBuilder in project storm by nathanmarz.

the class SpoutStats method hashCode.

@Override
public int hashCode() {
    HashCodeBuilder builder = new HashCodeBuilder();
    boolean present_acked = true && (is_set_acked());
    builder.append(present_acked);
    if (present_acked)
        builder.append(acked);
    boolean present_failed = true && (is_set_failed());
    builder.append(present_failed);
    if (present_failed)
        builder.append(failed);
    boolean present_complete_ms_avg = true && (is_set_complete_ms_avg());
    builder.append(present_complete_ms_avg);
    if (present_complete_ms_avg)
        builder.append(complete_ms_avg);
    return builder.toHashCode();
}
Also used : HashCodeBuilder(org.apache.commons.lang.builder.HashCodeBuilder)

Example 37 with HashCodeBuilder

use of org.apache.commons.lang.builder.HashCodeBuilder in project storm by nathanmarz.

the class StateSpoutSpec method hashCode.

@Override
public int hashCode() {
    HashCodeBuilder builder = new HashCodeBuilder();
    boolean present_state_spout_object = true && (is_set_state_spout_object());
    builder.append(present_state_spout_object);
    if (present_state_spout_object)
        builder.append(state_spout_object);
    boolean present_common = true && (is_set_common());
    builder.append(present_common);
    if (present_common)
        builder.append(common);
    return builder.toHashCode();
}
Also used : HashCodeBuilder(org.apache.commons.lang.builder.HashCodeBuilder)

Example 38 with HashCodeBuilder

use of org.apache.commons.lang.builder.HashCodeBuilder in project openhab1-addons by openhab.

the class TelegramConfiguration method hashCode.

/*
     * (non-Javadoc)
     * 
     * @see java.lang.Object#hashCode()
     */
@Override
public int hashCode() {
    final HashCodeBuilder hash = new HashCodeBuilder();
    hash.append(clazz).append(command).append(comment).append(computedValues).append(data).append(debug).append(device).append(dst).append(filter).append(id).append(values);
    return hash.toHashCode();
}
Also used : HashCodeBuilder(org.apache.commons.lang.builder.HashCodeBuilder)

Example 39 with HashCodeBuilder

use of org.apache.commons.lang.builder.HashCodeBuilder in project openhab1-addons by openhab.

the class TelegramValue method hashCode.

/*
     * (non-Javadoc)
     * 
     * @see java.lang.Object#hashCode()
     */
@Override
public int hashCode() {
    final HashCodeBuilder hash = new HashCodeBuilder();
    hash.append(bit).append(factor).append(factor).append(label).append(mapping).append(max).append(min).append(pos).append(replaceValue).append(script).append(step).append(type);
    return hash.toHashCode();
}
Also used : HashCodeBuilder(org.apache.commons.lang.builder.HashCodeBuilder)

Example 40 with HashCodeBuilder

use of org.apache.commons.lang.builder.HashCodeBuilder in project POL-POM-5 by PlayOnLinux.

the class MultipleRepository method hashCode.

@Override
public int hashCode() {
    HashCodeBuilder builder = new HashCodeBuilder();
    builder.append(repositories);
    return builder.toHashCode();
}
Also used : HashCodeBuilder(org.apache.commons.lang.builder.HashCodeBuilder)

Aggregations

HashCodeBuilder (org.apache.commons.lang.builder.HashCodeBuilder)183 Writable (org.apache.hadoop.io.Writable)1