Examples of toArray()


Examples of org.napile.primitive.sets.IntSet.toArray()

  private void openDoor(int npcId)
  {
    IntSet set = doors.get(npcId);
    if (set != null)
    {
      for (int i : set.toArray())
      {
        DoorInstance doorToOpen = ReflectionUtils.getDoor(i);
        doorToOpen.openMe();
        ThreadPoolManager.getInstance().schedule(new DoorClose(doorToOpen), 120 * 1000L);
      }
 
View Full Code Here

Examples of org.napile.primitive.sets.impl.HashIntSet.toArray()

    final Collection<Castle> castles = ResidenceHolder.getInstance().getResidenceList(Castle.class);
    for (Castle c : castles)
    {
      set.addAll(c.getMerchantGuards().keySet());
    }
    return set.toArray();
  }
}
View Full Code Here

Examples of org.nutz.lang.util.LinkedIntArray.toArray()

    for (String od : orders) {
      if (od.equals(name))
        re.push(i);
      i++;
    }
    return re.toArray();
  }

  public List<String> getOrders() {
    return orders;
  }
View Full Code Here

Examples of org.nutz.lang.util.LinkedLongArray.toArray()

  public Object invoke(Connection conn, ResultSet rs, Sql sql) throws SQLException {
    LinkedLongArray ary = new LinkedLongArray(20);
    while (rs.next())
      ary.push(rs.getLong(1));
    return ary.toArray();
  }

}
View Full Code Here

Examples of org.objectweb.asm.tree.InsnList.toArray()

    }
    // TODO annotations
    InsnList oInstructions = oMethod.instructions;
    InsnList nInstructions = nMethod.instructions;
    if (oInstructions.size() != nInstructions.size()) {
      md.setInstructionsChanged(oInstructions.toArray(), nInstructions.toArray());
    } else {
      // TODO Just interested in constructors right now - should add others
      if (oMethod.name.charAt(0) == '<') {
        String oInvokeSpecialDescriptor = null;
        String nInvokeSpecialDescriptor = null;
View Full Code Here

Examples of org.opencv.core.MatOfByte.toArray()

        this.setSize(m.width()+30, m.height()+50);
       
        MatOfByte mob = new MatOfByte();
        Highgui.imencode(".jpeg", m, mob);
       
        byte [] imgByteArray = mob.toArray();
        ImageIcon img = new ImageIcon(imgByteArray);
       
        this.imgL.setIcon(img);
      
        //if( !this.isVisible() )
View Full Code Here

Examples of org.opencv.core.MatOfRect.toArray()

            double width = image.width();
            double height = image.height();
            for (CascadeClassifierHolder objectClassifier : objectClassifiers) {
                objectClassifier.cascadeClassifier.detectMultiScale(image, faceDetections);

                for (Rect rect : faceDetections.toArray()) {
                    ArtifactDetectedObject detectedObject = new ArtifactDetectedObject(
                            rect.x / width,
                            rect.y / height,
                            (rect.x + rect.width) / width,
                            (rect.y + rect.height) / height,
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.layout.style.SimpleStyleSheet.toArray()

        new ManualBreakIndicatorStyleSheet(BandDefaultStyleSheet.getBandDefaultStyle());
    final StyleSheet manualBreakBoxStyle = new SimpleStyleSheet(mbis);

    final int styleCount = (StyleKey.getDefinedStyleKeyCount());
    assertTrue(styleCount > 0);
    final Object[] objects = manualBreakBoxStyle.toArray();
    assertNotNull(objects);
    assertEquals(objects.length, styleCount);
  }

View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.modules.output.table.html.helper.DefaultStyleBuilder.toArray()

      builder.append(StyleBuilder.CSSKeys.TEXT_DECORATION, "none");
      builder.append(StyleBuilder.CSSKeys.TEXT_ALIGN, "right");
      builder.append(StyleBuilder.CSSKeys.WORD_SPACING, "0", "pt");
      builder.append(StyleBuilder.CSSKeys.LETTER_SPACING, "0", "pt");
      builder.append(StyleBuilder.CSSKeys.WHITE_SPACE, "pre");
      return builder.toArray();
    }

    public HtmlTextExtractor createTextExtractor() throws ContentIOException
    {
      OutputProcessorMetaData metaData = createMetaData();
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.modules.output.table.html.helper.StyleBuilder.toArray()

          if (Boolean.TRUE.equals(content.getAttributes().getAttribute(AttributeNames.Html.NAMESPACE,
              AttributeNames.Html.SUPPRESS_CONTENT)) == false)
          {
            // the style of the content-box itself is already contained in the <td> tag. So there is no need
            // to duplicate the style here
            if (textExtractor.performOutput(content, cellStyle.toArray()) == false)
            {
              if (emptyCellsUseCSS == false)
              {
                xmlWriter.writeText("&nbsp;");
              }
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.