Examples of toArray()


Examples of de.willuhn.jameica.hbci.rmi.Konto.toArray()

    GenericIterator checked = null;
    if (myConfig != null)
    {
      List<Konto> k = myConfig.getKonten();
      if (k != null && k.size() > 0)
        checked = PseudoIterator.fromArray(k.toArray(new Konto[k.size()]));
    }

    for (Konto k:konten)
    {
      this.addItem(k,checked != null && (checked.contains(k) != null));
View Full Code Here

Examples of edu.emory.mathcs.backport.java.util.concurrent.CopyOnWriteArraySet.toArray()

                }
            }
        }catch(Throwable e){
            log.warn("Failed to browse Topic: "+getActiveMQDestination().getPhysicalName(),e);
        }
        return (Message[]) result.toArray(new Message[result.size()]);
    }

    // Properties
    // -------------------------------------------------------------------------
View Full Code Here

Examples of edu.harvard.wcfia.yoshikoder.document.DocumentList.toArray()

        super();
        yoshikoder = yk;
       
        DocumentList dl = yk.getProject().getDocumentList();
        YKDocument[] docarray =
            (YKDocument[])dl.toArray(new YKDocument[dl.size()]);
        doc1combo = new JComboBox(docarray);
        doc2combo = new JComboBox(docarray);
       
        YKDocument doc = yoshikoder.getSelectedDocument();
        if (doc != null){
View Full Code Here

Examples of edu.mit.simile.backstage.util.ScriptableArrayBuilder.toArray()

              _logger.error("Error querying for restricted items", e);
          }
         
          result.put("count", result, count);
          result.put("items", result, itemIDs.toArray());
          result.put("lenses", result, lenses.toArray());
     
            _logger.debug("< internalRun");
          return result;
    }
    }
View Full Code Here

Examples of edu.ucla.sspace.vector.DoubleVector.toArray()

        for (int i = 0; i < r; ++i) {
            DoubleVector row = getRowVector(i);
            // Ensure that we see a consistent length for all the rows
            if (row.length() != c)
                row = Vectors.subview(row, 0, c);
            m[i] = row.toArray();
        }

        for (int i = 0; i < r; ++i)
            unlockRow(i, c);
       
View Full Code Here

Examples of erjang.ESeq.toArray()

  @BIF
  public static ETuple list_to_tuple(EObject obj) {
    ESeq seq;
    if ((seq = obj.testSeq()) == null)
      throw ERT.badarg(obj);
    return ETuple.make(seq.toArray());
  }

  @BIF
  public static EString binary_to_list(EObject obj) {
    EBinary bin = obj.testBinary();
View Full Code Here

Examples of games.stendhal.common.parser.CompoundName.toArray()

    cn = wl.searchCompoundName(ConversationParser.parseAsMatchingSource("ados scroll").expressions, 0);
    assertNull(cn);

    cn = wl.searchCompoundName(ConversationParser.parseAsMatchingSource("ados city").expressions, 0);
    assertArrayEquals(new String[]{"ados","city"}, cn.toArray());
    assertNotNull(cn);

    cn = wl.searchCompoundName(ConversationParser.parseAsMatchingSource("ados city scroll").expressions, 0);
    assertArrayEquals(new String[]{"ados","city","scroll"}, cn.toArray());
    assertNotNull(cn);
View Full Code Here

Examples of gnu.trove.TIntCollection.toArray()

        for ( int i = 0; i < collection.size(); i++ ) {
            assertTrue( collection.contains( vals[i] ) );
        }
        assertFalse( collection.isEmpty() );

        int[] values_array = collection.toArray();
        int count = 0;
        TIntIterator iter = collection.iterator();
        while ( iter.hasNext() ) {
            int value = iter.next();
            assertTrue( collection.contains( value ) );
View Full Code Here

Examples of gnu.trove.TIntHashSet.toArray()

        return mean(instances, maxDenseIndex + 1);
      }
    }

    // reaching this statement implies we can create a sparse vector
    return mean(instances, hIndices.toArray());

  }

  /**
   * Returns a <CODE>SparseVector</CODE> whose entries (dense with the given
View Full Code Here

Examples of gnu.trove.TLongCollection.toArray()

        TLongCollection values = map.valueCollection();
        long[] sorted_keys = new long[ vals.length ];
        System.arraycopy( vals, 0, sorted_keys, 0, vals.length );
        Arrays.sort( sorted_keys );
        long[] setarray = values.toArray();
        Arrays.sort( setarray );
        assertTrue( "expected: " + Arrays.toString( sorted_keys ) +
                    ", was: " + Arrays.toString( setarray ),
                Arrays.equals( sorted_keys, setarray ) );
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.