Search in sources :

Example 51 with HashCodeBuilder

use of org.apache.commons.lang.builder.HashCodeBuilder in project vladmihalcea.wordpress.com by vladmihalcea.

the class Image method hashCode.

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

Example 52 with HashCodeBuilder

use of org.apache.commons.lang.builder.HashCodeBuilder in project vladmihalcea.wordpress.com by vladmihalcea.

the class Product method hashCode.

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

Example 53 with HashCodeBuilder

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

the class AuthenticationRequest method hashCode.

@Override
public int hashCode() {
    HashCodeBuilder builder = new HashCodeBuilder();
    boolean present_credentials = true && (isSetCredentials());
    builder.append(present_credentials);
    if (present_credentials)
        builder.append(credentials);
    return builder.toHashCode();
}
Also used : HashCodeBuilder(org.apache.commons.lang.builder.HashCodeBuilder)

Example 54 with HashCodeBuilder

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

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 55 with HashCodeBuilder

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

the class InvalidRequestException method hashCode.

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