Search in sources :

Example 21 with HashCodeBuilder

use of org.apache.commons.lang.builder.HashCodeBuilder in project logprocessing by cloudian.

the class IndexExpression method hashCode.

@Override
public int hashCode() {
    HashCodeBuilder builder = new HashCodeBuilder();
    boolean present_column_name = true && (isSetColumn_name());
    builder.append(present_column_name);
    if (present_column_name)
        builder.append(column_name);
    boolean present_op = true && (isSetOp());
    builder.append(present_op);
    if (present_op)
        builder.append(op.getValue());
    boolean present_value = true && (isSetValue());
    builder.append(present_value);
    if (present_value)
        builder.append(value);
    return builder.toHashCode();
}
Also used : HashCodeBuilder(org.apache.commons.lang.builder.HashCodeBuilder)

Example 22 with HashCodeBuilder

use of org.apache.commons.lang.builder.HashCodeBuilder in project head by mifos.

the class FeeBO method hashCode.

@Override
public int hashCode() {
    int initialNonZeroOddNumber = 7;
    int multiplierNonZeroOddNumber = 7;
    return new HashCodeBuilder(initialNonZeroOddNumber, multiplierNonZeroOddNumber).append(this.getFeeId()).append(this.getFeeName()).toHashCode();
}
Also used : HashCodeBuilder(org.apache.commons.lang.builder.HashCodeBuilder)

Example 23 with HashCodeBuilder

use of org.apache.commons.lang.builder.HashCodeBuilder in project head by mifos.

the class FundCodeEntity method hashCode.

@Override
public int hashCode() {
    int initialNonZeroOddNumber = 7;
    int multiplierNonZeroOddNumber = 7;
    return new HashCodeBuilder(initialNonZeroOddNumber, multiplierNonZeroOddNumber).append(this.fundcodeId).append(this.fundcodeValue).hashCode();
}
Also used : HashCodeBuilder(org.apache.commons.lang.builder.HashCodeBuilder)

Example 24 with HashCodeBuilder

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

the class QueueInfo method hashCode.

@Override
public int hashCode() {
    HashCodeBuilder builder = new HashCodeBuilder();
    boolean present_head_item = true && (is_set_head_item());
    builder.append(present_head_item);
    if (present_head_item)
        builder.append(head_item);
    boolean present_items = true;
    builder.append(present_items);
    if (present_items)
        builder.append(items);
    boolean present_bytes = true;
    builder.append(present_bytes);
    if (present_bytes)
        builder.append(bytes);
    boolean present_journal_bytes = true;
    builder.append(present_journal_bytes);
    if (present_journal_bytes)
        builder.append(journal_bytes);
    boolean present_age = true;
    builder.append(present_age);
    if (present_age)
        builder.append(age);
    boolean present_waiters = true;
    builder.append(present_waiters);
    if (present_waiters)
        builder.append(waiters);
    boolean present_open_transactions = true;
    builder.append(present_open_transactions);
    if (present_open_transactions)
        builder.append(open_transactions);
    return builder.toHashCode();
}
Also used : HashCodeBuilder(org.apache.commons.lang.builder.HashCodeBuilder)

Example 25 with HashCodeBuilder

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

the class AlreadyAliveException method hashCode.

@Override
public int hashCode() {
    HashCodeBuilder builder = new HashCodeBuilder();
    boolean present_msg = true && (is_set_msg());
    builder.append(present_msg);
    if (present_msg)
        builder.append(msg);
    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