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.drools.planner.examples.nurserostering.domain.NurseRoster.java
public int hashCode() { HashCodeBuilder hashCodeBuilder = new HashCodeBuilder(); for (ShiftAssignment shiftAssignment : shiftAssignmentList) { // Notice: we don't use hashCode() hashCodeBuilder.append(shiftAssignment.solutionHashCode()); }//from w w w . j a va2 s. c o m return hashCodeBuilder.toHashCode(); }
From source file:org.drools.planner.examples.parentalbenefit.domain.ParentalBenefitPlan.java
public int hashCode() { HashCodeBuilder hashCodeBuilder = new HashCodeBuilder(); for (MonthPlan assignment : monthPlanList) { // Notice: we don't use hashCode() hashCodeBuilder.append(assignment.solutionHashCode()); }//ww w. j av a2s .co m return hashCodeBuilder.toHashCode(); }
From source file:org.drools.planner.examples.pas.domain.PatientAdmissionSchedule.java
public int hashCode() { HashCodeBuilder hashCodeBuilder = new HashCodeBuilder(); for (BedDesignation bedDesignation : bedDesignationList) { // Notice: we don't use hashCode() hashCodeBuilder.append(bedDesignation.solutionHashCode()); }/*from w w w . java 2 s .c o m*/ return hashCodeBuilder.toHashCode(); }
From source file:org.drools.planner.examples.traindesign.domain.TrainDesign.java
public int hashCode() { HashCodeBuilder hashCodeBuilder = new HashCodeBuilder(); for (CarBlockDesignation bedDesignation : carBlockDesignationList) { // Notice: we don't use hashCode() hashCodeBuilder.append(bedDesignation.solutionHashCode()); }/*ww w .j a va 2 s. c o m*/ return hashCodeBuilder.toHashCode(); }
From source file:org.drools.planner.examples.travelingtournament.domain.TravelingTournament.java
public int hashCode() { HashCodeBuilder hashCodeBuilder = new HashCodeBuilder(); for (Match match : matchList) { // Notice: we don't use hashCode() hashCodeBuilder.append(match.solutionHashCode()); }//w w w .j a va2 s . c o m return hashCodeBuilder.toHashCode(); }
From source file:org.drools.planner.examples.tsp.domain.TravelingSalesmanTour.java
public int hashCode() { HashCodeBuilder hashCodeBuilder = new HashCodeBuilder(); for (Visit visit : visitList) { // Notice: we don't use hashCode() hashCodeBuilder.append(visit.solutionHashCode()); }//ww w . j a v a2 s .c om return hashCodeBuilder.toHashCode(); }
From source file:org.drools.planner.examples.vehiclerouting.domain.VrpSchedule.java
public int hashCode() { HashCodeBuilder hashCodeBuilder = new HashCodeBuilder(); for (VrpCustomer customer : customerList) { // Notice: we don't use hashCode() hashCodeBuilder.append(customer.solutionHashCode()); }//from ww w . j a va 2 s .com return hashCodeBuilder.toHashCode(); }
From source file:org.geoserver.security.iride.entity.IrideIdentity.java
@Override public int hashCode() { final HashCodeBuilder builder = new HashCodeBuilder(); builder.append(this.codFiscale).append(this.nome).append(this.cognome).append(this.idProvider) .append(this.timestamp).append(this.livelloAutenticazione).append(this.mac); return builder.toHashCode(); }
From source file:org.geoserver.security.iride.entity.IrideInfoPersona.java
@Override public int hashCode() { final HashCodeBuilder builder = new HashCodeBuilder(); builder.append(this.role); return builder.toHashCode(); }
From source file:org.glite.security.voms.admin.persistence.model.Certificate.java
public int hashCode() { HashCodeBuilder builder = new HashCodeBuilder(7, 37); builder.append(getSubjectString()).append(getCa()); return builder.toHashCode(); }