Examples of all()


Examples of org.apache.flex.compiler.internal.css.semantics.ActivatedStyleSheets.all()

            // Get all dependencies introduced by defaults.css from SWCs.
            final ImmutableList<IDefinition> definitions =
                        Target.getAllExternallyVisibleDefinitions(allCompilationUnitsInTarget);
            final Collection<ICompilationUnit> cssDependencies = new HashSet<ICompilationUnit>();
            for (final ICSSDocument cssDocument : activatedStyleSheets.all())
            {
                // Side-effects of this method:
                // 1. Resolve all type selectors in the CSS model to IClassDefinition definitions.
                // 2. Activate CSS rules whose subject is in the definition set.
                final Collection<ICompilationUnit> dependentCUListFromCSS =
View Full Code Here

Examples of org.apache.jackrabbit.oak.plugins.observation.filter.FilterBuilder.all()

        FilterBuilder filterBuilder = new FilterBuilder();
        filterBuilder
            .basePath(namePathMapper.getOakPath(absPath))
            .includeSessionLocal(!noLocal)
            .includeClusterExternal(!(listener instanceof ExcludeExternal))
            .condition(filterBuilder.all(
                filterBuilder.path(isDeep ? STAR_STAR : STAR),
                filterBuilder.eventType(eventTypes),
                filterBuilder.uuid(Selectors.PARENT, uuids),
                filterBuilder.nodeType(Selectors.PARENT, validateNodeTypeNames(nodeTypeName))));
View Full Code Here

Examples of org.apache.mahout.math.DenseVector.all()

  public void testTrain() {

    Random gen = RandomUtils.getRandom();
    Exponential exp = new Exponential(0.5, gen);
    Vector beta = new DenseVector(200);
    for (Vector.Element element : beta.all()) {
      int sign = 1;
      if (gen.nextDouble() < 0.5) {
        sign = -1;
      }
      element.set(sign * exp.nextDouble());
 
View Full Code Here

Examples of org.apache.mahout.math.Vector.all()

      // together which have the same *combination* of indices; for example,
      // (1, 3) will have the same key as (3, 1) but a different key from (1, 1)
      // and (3, 3) (which, incidentally, will also not be grouped together)
      String type = context.getWorkingDirectory().getName();
      Vector vector = row.get();
      for (Vector.Element e : vector.all()) {
        String newkey = Math.max(key.get(), e.index()) + "_" + Math.min(key.get(), e.index());
        context.write(new Text(newkey), new VertexWritable(key.get(), e.index(), e.get(), type));
      }
    }
  }
View Full Code Here

Examples of org.bukkit.inventory.Inventory.all()

    // find all shovel items, if there are more than one to be removed
    for (int i = 0; i < shovelItem.getAmount(); i++) {
      int indexFound = -1; // keeps found shovels
      short durability = Short.MIN_VALUE; // keeps status of worst shovel found
      // get all possible shovel items
      for (Integer index : inventory.all(shovelMaterial).keySet()) {
        ItemStack current = inventory.getItem(index);
        short currentDurability = current.getDurability();
        if (currentDurability > durability) { // is this the worst shovel found?
          indexFound = index;
          durability = currentDurability;
View Full Code Here

Examples of org.bukkit.inventory.PlayerInventory.all()

            if (playerInv.getHelmet() == null || playerInv.getHelmet().getType() != Material.LEATHER_HELMET) {
              playerInv.setHelmet(team.getKind().getHat());
            }
           
            // 2) Get rid of extra blocks in inventory: only keep one
            HashMap<Integer, ? extends ItemStack> blocks = playerInv.all(teamBlockMaterial);
            if (blocks.size() > 1 || (blocks.size() == 1 && blocks.get(blocks.keySet().iterator().next()).getAmount() > 1)) {
              int i = 0;
              int removed = 0;
              for (ItemStack item : playerInv.getContents()) {
                // remove only same colored wool
View Full Code Here

Examples of org.crsh.util.Statement.all()

              @Override
              protected void run() throws Throwable {
                context.process.cancel();
              }
            });
            statements.all();
          }
        } else if (msg instanceof ClientMessage.Close) {
          close();
        }
      }
View Full Code Here

Examples of org.eclipse.swtbot.eclipse.finder.waits.WaitForEditor.all()

  public List<SWTBotEclipseEditor> editors() throws WidgetNotFoundException {
    Matcher matcher = allOf(instanceOf(IEditorReference.class));
    WaitForEditor waiForEditor = waitForEditor(matcher);
    waitUntilWidgetAppears(waiForEditor);

    List<IEditorReference> editors = waiForEditor.all();
    List<SWTBotEclipseEditor> result = new ArrayList<SWTBotEclipseEditor>(editors.size());

    for (IWorkbenchPartReference editor : editors) {
      result.add(new SWTBotEclipseEditor((IEditorReference) editor, this));
    }
View Full Code Here

Examples of org.eclipse.swtbot.eclipse.finder.waits.WaitForPart.all()

  public List<SWTBotView> views() throws WidgetNotFoundException {
    Matcher matcher = allOf(instanceOf(IViewReference.class));
    WaitForPart waitForView = waitForPart(matcher);
    waitUntilWidgetAppears(waitForView);

    List<IViewReference> editors = waitForView.all();
    List<SWTBotView> result = new ArrayList<SWTBotView>(editors.size());

    for (IWorkbenchPartReference editor : editors) {
      result.add(new SWTBotView((IViewReference) editor, this));
    }
View Full Code Here

Examples of org.ejml.alg.dense.linsol.GenericSolvePseudoInverseChecks.all()

    @Test
    public void checkSingularBasic() {
        LinearSolver<DenseMatrix64F> solver = new SolvePseudoInverseSvd(10,10);
        GenericSolvePseudoInverseChecks checks = new GenericSolvePseudoInverseChecks(solver);

        checks.all();
    }
}
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.