Examples of sort()


Examples of org.sonar.api.utils.dag.DirectAcyclicGraph.sort()

      for (Object generates : getDependents(extension)) {
        dag.add(generates, extension);
      }
      completePhaseDependencies(dag, extension);
    }
    List sortedList = dag.sort();

    return Collections2.filter(sortedList, Predicates.in(extensions));
  }

  /**
 
View Full Code Here

Examples of org.springframework.binding.value.support.ListListModel.sort()

    }
    else {
      model = new ListListModel();
    }
    model.setComparator(comparator);
    model.sort();
    return model;
  }

  protected void updateSelectionHolderFromList(final PropertyChangeListener silentValueChangeHandler) {
    final Object[] selected = list.getSelectedValues();
View Full Code Here

Examples of org.springframework.data.mongodb.core.query.BasicQuery.sort()

        System.out.println(query.toQuery().toString());

        Query bquery = new BasicQuery(query.toQuery());
        bquery.limit(100);

        bquery.sort().on("$timestamp", Order.DESCENDING);
        System.out.println(bquery.getQueryObject());
        System.out.println(bquery.getFieldsObject());
        System.out.println(bquery.getSortObject());
//        assertEquals("{ \"timestamp\" : { \"$gt\" : { \"$date\" : \"1970-01-01T00:01:40.000Z\"}} , \"$where\" : \"this.message && this.message.match('hello')\"}",query.toQuery().toString());
    }
View Full Code Here

Examples of org.springframework.data.mongodb.core.query.Query.sort()

        System.out.println(query.toQuery().toString());

        Query bquery = new BasicQuery(query.toQuery());
        bquery.limit(100);

        bquery.sort().on("$timestamp", Order.DESCENDING);
        System.out.println(bquery.getQueryObject());
        System.out.println(bquery.getFieldsObject());
        System.out.println(bquery.getSortObject());
//        assertEquals("{ \"timestamp\" : { \"$gt\" : { \"$date\" : \"1970-01-01T00:01:40.000Z\"}} , \"$where\" : \"this.message && this.message.match('hello')\"}",query.toQuery().toString());
    }
View Full Code Here

Examples of org.syncany.operations.down.FileSystemActionComparator.sort()

    actions.add(createRenameFileSystemAction("from.jpg", "to.jpg", FileType.FILE));
    actions.add(createDeleteFileSystemAction("deletedfile2.jpg", FileType.FILE));
   
    // Run
    FileSystemActionComparator actionComparator = new FileSystemActionComparator();   
    actionComparator.sort(actions);
   
    // Test
    assertArrayEquals("Actions should match order",
      new String[] {
        "DeleteFileSystemAction,deletedfile2.jpg,FILE",
View Full Code Here

Examples of org.teiid.query.processor.relational.SortUtility.sort()

    boolean usingQueryTupleSource = false;
    try {
      TupleBuffer tb = null;
      if (ii.ordering == null && orderBy != null) {
        SortUtility sort = new SortUtility(ts, orderBy.getOrderByItems(), Mode.SORT, bm, sessionID, projectedCols);
        tb = sort.sort();
      } else if (agg) {
        int count = 0;
        while (ts.nextTuple() != null) {
          count++;
        }
View Full Code Here

Examples of org.trifort.rootbeer.generate.opencl.FieldPackingSorter.sort()

  }
 
  private Set<String> getFieldBodies(CompositeField composite){
    Set<String> ret = new HashSet<String>();
    FieldPackingSorter sorter = new FieldPackingSorter();
    List<OpenCLField> ref_sorted = sorter.sort(composite.getRefFields());
    List<OpenCLField> nonref_sorted = sorter.sort(composite.getNonRefFields());
    for(OpenCLField field : ref_sorted){
      boolean writable = true;
      ret.add(field.getGetterSetterBodies(composite, writable, m_TypeSwitch));
    }
View Full Code Here

Examples of org.zkoss.zul.Column.sort()

    public void sortQueryWorkReportLines() {
        Column columnDateLine = (Column) listQueryWindow.getFellow("date");
        if (columnDateLine != null) {
            if (columnDateLine.getSortDirection().equals("ascending")) {
                columnDateLine.sort(false, false);
                columnDateLine.setSortDirection("ascending");
            } else if (columnDateLine.getSortDirection().equals("descending")) {
                columnDateLine.sort(true, false);
                columnDateLine.setSortDirection("descending");
            }
View Full Code Here

Examples of org.zkoss.zul.ListModelExt.sort()

    public void forceSortGridSatisfaction() {
        Column column = (Column) listingCriterions.getColumns().getFirstChild();
        ListModelExt model = (ListModelExt) listingCriterions.getModel();
        if (model != null) {
            if ("ascending".equals(column.getSortDirection())) {
                model.sort(column.getSortAscending(), true);
            }
            if ("descending".equals(column.getSortDirection())) {
                model.sort(column.getSortDescending(), false);
            }
        }
View Full Code Here

Examples of org.zkoss.zul.api.Listheader.sort()

    private void triggerSortListBoxResources() {
        for (Object child : listBoxResources.getListhead().getChildren()) {
            final Listheader hd = (Listheader) child;
            if (!"natural".equals(hd.getSortDirection())) {
                hd.sort("ascending".equals(hd.getSortDirection()), true);
            }
        }
    }

    private void returnToSpecificDueToResourceSelection() {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.