List of usage examples for org.apache.commons.lang.builder HashCodeBuilder append
public HashCodeBuilder append(short[] array)
Append a hashCode
for a short
array.
From source file:org.opencustomer.db.vo.calendar.EventPersonVO.java
@Override public int hashCode() { HashCodeBuilder builder = new HashCodeBuilder(); if (getPerson() != null) builder.append(getPerson().getId()); else/*from w w w . java 2s. co m*/ builder.append(0); if (getEvent() != null) builder.append(getEvent().getId()); else builder.append(0); return builder.toHashCode(); }
From source file:org.opencustomer.db.vo.crm.AddressVO.java
@Override public int hashCode() { HashCodeBuilder builder = new HashCodeBuilder(); builder.append(getCompany()); builder.append(getType());/* w w w . j av a 2 s . c o m*/ return builder.toHashCode(); }
From source file:org.openengsb.core.workflow.api.model.ProcessBag.java
@Override public int hashCode() { HashCodeBuilder hashCodeBuilder = new HashCodeBuilder(); hashCodeBuilder.append(processId).append(context).append(user); Set<Entry<String, Object>> entrySet = properties.entrySet(); for (Entry<String, Object> pair : entrySet) { hashCodeBuilder.append(pair.getKey()).append(pair.getValue()); }/* w w w.ja v a 2 s . c o m*/ return hashCodeBuilder.toHashCode(); }
From source file:org.openhab.binding.ebus.internal.configuration.TelegramConfiguration.java
@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(); }
From source file:org.openhab.binding.ebus.internal.configuration.TelegramValue.java
@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(); }
From source file:org.opentaps.rest.ezmorph.TimestampMorpher.java
@Override public int hashCode() { HashCodeBuilder builder = new HashCodeBuilder(); builder.append(formats); builder.append(locale);//from w w w . j a v a 2 s . co m builder.append(lenient); if (isUseDefault()) { builder.append(getDefaultValue()); } return builder.toHashCode(); }
From source file:org.openvpms.hl7.io.Connector.java
/** * Builds the hash code./*from www .j ava2 s . c o m*/ * * @param builder the hash code builder * @return the builder */ protected HashCodeBuilder hashCode(HashCodeBuilder builder) { return builder.append(sendingApplication).append(sendingFacility).append(receivingApplication) .append(receivingFacility); }
From source file:org.projectforge.access.AccessEntryDO.java
@Override public int hashCode() { final HashCodeBuilder hcb = new HashCodeBuilder(); if (getAccessType() != null) hcb.append(getAccessType().ordinal()); hcb.append(getId());/*from w w w .j a va 2 s . c o m*/ return hcb.toHashCode(); }
From source file:org.projectforge.access.GroupTaskAccessDO.java
@Override public int hashCode() { final HashCodeBuilder hcb = new HashCodeBuilder(); hcb.append(getTaskId()); hcb.append(getGroupId());/*ww w . ja v a 2 s . c o m*/ return hcb.toHashCode(); }
From source file:org.projectforge.address.BirthdayAddress.java
@Override public int hashCode() { final HashCodeBuilder hcb = new HashCodeBuilder(); hcb.append(this.compareString); return hcb.toHashCode(); }