Search in sources :

Example 66 with HashCodeBuilder

use of org.apache.commons.lang.builder.HashCodeBuilder in project eiger by wlloyd.

the class GetCountResult method hashCode.

@Override
public int hashCode() {
    HashCodeBuilder builder = new HashCodeBuilder();
    boolean present_value = true;
    builder.append(present_value);
    if (present_value)
        builder.append(value);
    boolean present_deps = true && (isSetDeps());
    builder.append(present_deps);
    if (present_deps)
        builder.append(deps);
    boolean present_lts = true;
    builder.append(present_lts);
    if (present_lts)
        builder.append(lts);
    return builder.toHashCode();
}
Also used : HashCodeBuilder(org.apache.commons.lang.builder.HashCodeBuilder)

Example 67 with HashCodeBuilder

use of org.apache.commons.lang.builder.HashCodeBuilder in project eiger by wlloyd.

the class GetRangeSlicesResult method hashCode.

@Override
public int hashCode() {
    HashCodeBuilder builder = new HashCodeBuilder();
    boolean present_value = true && (isSetValue());
    builder.append(present_value);
    if (present_value)
        builder.append(value);
    boolean present_lts = true;
    builder.append(present_lts);
    if (present_lts)
        builder.append(lts);
    return builder.toHashCode();
}
Also used : HashCodeBuilder(org.apache.commons.lang.builder.HashCodeBuilder)

Example 68 with HashCodeBuilder

use of org.apache.commons.lang.builder.HashCodeBuilder in project eiger by wlloyd.

the class GetResult method hashCode.

@Override
public int hashCode() {
    HashCodeBuilder builder = new HashCodeBuilder();
    boolean present_value = true && (isSetValue());
    builder.append(present_value);
    if (present_value)
        builder.append(value);
    boolean present_lts = true;
    builder.append(present_lts);
    if (present_lts)
        builder.append(lts);
    return builder.toHashCode();
}
Also used : HashCodeBuilder(org.apache.commons.lang.builder.HashCodeBuilder)

Example 69 with HashCodeBuilder

use of org.apache.commons.lang.builder.HashCodeBuilder in project eiger by wlloyd.

the class GetSliceResult method hashCode.

@Override
public int hashCode() {
    HashCodeBuilder builder = new HashCodeBuilder();
    boolean present_value = true && (isSetValue());
    builder.append(present_value);
    if (present_value)
        builder.append(value);
    boolean present_lts = true;
    builder.append(present_lts);
    if (present_lts)
        builder.append(lts);
    return builder.toHashCode();
}
Also used : HashCodeBuilder(org.apache.commons.lang.builder.HashCodeBuilder)

Example 70 with HashCodeBuilder

use of org.apache.commons.lang.builder.HashCodeBuilder in project eiger by wlloyd.

the class IndexClause method hashCode.

@Override
public int hashCode() {
    HashCodeBuilder builder = new HashCodeBuilder();
    boolean present_expressions = true && (isSetExpressions());
    builder.append(present_expressions);
    if (present_expressions)
        builder.append(expressions);
    boolean present_start_key = true && (isSetStart_key());
    builder.append(present_start_key);
    if (present_start_key)
        builder.append(start_key);
    boolean present_count = true;
    builder.append(present_count);
    if (present_count)
        builder.append(count);
    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