List of usage examples for org.apache.commons.lang.builder CompareToBuilder CompareToBuilder
public CompareToBuilder()
Constructor for CompareToBuilder.
Starts off assuming that the objects are equal.
From source file:edu.utah.further.ds.further.model.impl.domain.ConditionOccurrenceId.java
@Override public int compareTo(final ConditionOccurrenceId other) { return new CompareToBuilder().append(other.getId(), this.getId()) .append(other.getDatasetId(), this.getDatasetId()).toComparison(); }
From source file:edu.utah.further.ds.further.model.impl.domain.EncounterId.java
@Override public int compareTo(final EncounterId other) { return new CompareToBuilder().append(other.getId(), this.getId()) .append(other.getDatasetId(), this.getDatasetId()).toComparison(); }
From source file:edu.utah.further.ds.further.model.impl.domain.ProviderId.java
@Override public int compareTo(final ProviderId other) { return new CompareToBuilder().append(other.getId(), this.getId()) .append(other.getDatasetId(), this.getDatasetId()).toComparison(); }
From source file:edu.utah.further.mdr.data.common.domain.asset.LookupValueEntity.java
/** * @param other//from www.j av a 2 s .c o m * @return * @see edu.utah.further.mdr.api.domain.asset.LookupValue#compareTo(edu.utah.further.mdr.api.domain.asset.LookupValue) */ @Override public int compareTo(final LookupValue other) { return new CompareToBuilder().append(this.order, other.getOrder()).append(this.label, other.getLabel()) .toComparison(); }
From source file:edu.utah.further.ds.further.model.impl.domain.LocationId.java
@Override public int compareTo(final LocationId other) { return new CompareToBuilder().append(other.getId(), this.getId()) .append(other.getDatasetId(), this.getDatasetId()).toComparison(); }
From source file:edu.utah.further.ds.further.model.impl.domain.ObservationId.java
@Override public int compareTo(final ObservationId other) { return new CompareToBuilder().append(other.getId(), this.getId()) .append(other.getDatasetId(), this.getDatasetId()).toComparison(); }
From source file:edu.utah.further.ds.further.model.impl.domain.ProcedureOccurrenceId.java
@Override public int compareTo(final ProcedureOccurrenceId other) { return new CompareToBuilder().append(other.getId(), this.getId()) .append(other.getDatasetId(), this.getDatasetId()).toComparison(); }
From source file:edu.utah.further.ds.further.model.impl.domain.ObservationPeriodId.java
@Override public int compareTo(final ObservationPeriodId other) { return new CompareToBuilder().append(other.getId(), this.getId()) .append(other.getDatasetId(), this.getDatasetId()).toComparison(); }
From source file:de.iteratec.iteraplan.presentation.dialog.MassUpdate.model.MassUpdateConfig.java
public int compareTo(MassUpdateConfig o) { return new CompareToBuilder().append(this.position, o.position).toComparison(); }
From source file:harschware.collections.ranges.ValidRange.java
@Override public int compareTo(Range<T> other) { return new CompareToBuilder().append(this.start, other.getStart()).append(this.end, other.getEnd()) .toComparison();/*from w ww.j av a 2s. co m*/ }