Package org.apache.commons.lang.builder

Examples of org.apache.commons.lang.builder.CompareToBuilder


  public int compareTo(final Colli other) {
    if ("Garasjepakke".equals(colliName)) {
      return -1;
    }
    return new CompareToBuilder().append(colliName, other.colliName)
        .toComparison();
  }
View Full Code Here


    public void setCommentTypeComment(String commentTypeComment) {
        this.commentTypeComment = commentTypeComment;
    }

    public int compareTo(final CommentType other) {
        return new CompareToBuilder().append(commentTypeName,
                other.commentTypeName).toComparison();
    }
View Full Code Here

  public Boolean isMaster() {
    return Util.convertNumberToBoolean(isMaster);
  }

  public int compareTo(final ConstructionType other) {
    return new CompareToBuilder().append(name, other.name).toComparison();
  }
View Full Code Here

    public abstract Periode convertPeriode(Periode periode);
  }

  public int compareTo(final SalesmanGoal other) {
    return new CompareToBuilder().append(productArea.getSortNr(),
        other.productArea.getSortNr()).append(salesman, other.salesman)
        .toComparison();
  }
View Full Code Here

import no.ugland.utransprod.model.Produceable;

public class PackableListItemComparator implements Comparator<PackableListItem> {

  public int compare(PackableListItem packable1, PackableListItem packable2) {
    return new CompareToBuilder().append(
        packable1.getTransportYear(), packable2.getTransportYear()).append(
            packable1.getTransportWeek(), packable2.getTransportWeek()).append(packable1.getLoadingDate(), packable2.getLoadingDate())
    .append(packable1.getTransportDetails(), packable2.getTransportDetails()).append(
        packable1.getLoadTime(), packable2.getLoadTime()).toComparison();
  }
View Full Code Here

  public class SaleReportDataCountyComparator implements
      Comparator<SaleReportData> {

    public int compare(SaleReportData o1, SaleReportData o2) {
      return new CompareToBuilder().append(o1.getType(), o2.getType())
          .toComparison();
    }
View Full Code Here

  public class SaleReportSumDataCountyComparator implements
      Comparator<SaleReportSum> {

    public int compare(SaleReportSum o1, SaleReportSum o2) {
      return new CompareToBuilder().append(o1.getCountyName(),
          o2.getCountyName()).toComparison();
    }
View Full Code Here

  public class SaleReportSumDataSalesmanComparator implements
      Comparator<SaleReportSum> {

    public int compare(SaleReportSum o1, SaleReportSum o2) {
      return new CompareToBuilder().append(o1.getSalesman(),
          o2.getSalesman()).toComparison();
    }
View Full Code Here

  public class SaleReportDataSalesmanComparator implements
      Comparator<SaleReportData> {

    public int compare(SaleReportData o1, SaleReportData o2) {
      return new CompareToBuilder().append(o1.getSalesman(),
          o2.getSalesman()).toComparison();
    }
View Full Code Here

    Integer otherYear = other.transportYear != null ? other.transportYear
        : 9999;
    Integer thisWeek = transportWeek != null ? transportWeek : 9999;
    Integer otherWeek = other.transportWeek != null ? other.transportWeek
        : 9999;
    return new CompareToBuilder().append(thisYear, otherYear).append(
        thisWeek, otherWeek).append(loadingDate, other.loadingDate)
        .toComparison();
  }
View Full Code Here

TOP

Related Classes of org.apache.commons.lang.builder.CompareToBuilder

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.