Search in sources :

Example 46 with HashCodeBuilder

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

the class CachedRepository method hashCode.

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

Example 47 with HashCodeBuilder

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

the class LocalRepository method hashCode.

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

Example 48 with HashCodeBuilder

use of org.apache.commons.lang.builder.HashCodeBuilder in project symmetric-ds by JumpMind.

the class Column method hashCode.

/**
     * {@inheritDoc}
     */
public int hashCode() {
    HashCodeBuilder builder = new HashCodeBuilder(17, 37);
    builder.append(name);
    builder.append(primaryKey);
    builder.append(required);
    builder.append(autoIncrement);
    builder.append(mappedTypeCode);
    builder.append(mappedType);
    builder.append(scale);
    builder.append(getParsedDefaultValue());
    if (!TypeMap.isNumericType(mappedTypeCode)) {
        builder.append(size);
    }
    return builder.toHashCode();
}
Also used : HashCodeBuilder(org.apache.commons.lang.builder.HashCodeBuilder)

Example 49 with HashCodeBuilder

use of org.apache.commons.lang.builder.HashCodeBuilder in project crunch by cloudera.

the class AvroType method hashCode.

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

Example 50 with HashCodeBuilder

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

the class WarehouseProductInfo method hashCode.

@Override
public int hashCode() {
    HashCodeBuilder hcb = new HashCodeBuilder();
    hcb.append(product);
    return hcb.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