Examples of elements()


Examples of JP.digitune.util.SortVector.elements()

        SortVector tmpvec = new SortVector();
        while (members.hasMoreElements()) {
          IPMComEvent tmpevent = (IPMComEvent) members.nextElement();
          tmpvec.addElement(makeSortKey(tmpevent), tmpevent);
        }
        members = tmpvec.elements();
        while (members.hasMoreElements()) {
          IPMComEvent tmpevent = (IPMComEvent) members.nextElement();
          IPMPack tmppack = tmpevent.getPack();
          if (tmppack.getGroup() != null
            && groupcache.get(tmppack.getGroup()) == null) {
View Full Code Here

Examples of antlr.collections.impl.IndexedVector.elements()

        GrammarFile gf = hier.getFile(getFileName());
        gf.setExpanded(true);

        // Copy rules from supergrammar into this grammar
        IndexedVector inhRules = superG.getRules();
        for (Enumeration e = inhRules.elements(); e.hasMoreElements();) {
            Rule r = (Rule)e.nextElement();
            inherit(r, superG);
        }

        // Copy options from supergrammar into this grammar
View Full Code Here

Examples of anvil.core.Array.elements()

    switch(value.typeOf()) {
    case Any.IS_ARRAY:
      {
        Array array = value.toArray();
        ensureSpace(array.sizeOf());
        Enumeration e = array.elements();
        while(e.hasMoreElements()) {
          add((Any)e.nextElement());
        }
      }
      break;
View Full Code Here

Examples of ariba.ui.aribaweb.util.AWPagedVector.elements()

        }

        super.renderResponse(requestContext, component);

        if (start != -1 && _contentIterator != null) {
            AWPagedVector.AWPagedVectorIterator iter = vector.elements(start, vector.size());
            _contentIterator.setValue(iter, component);
            iter.release();
        }
    }
View Full Code Here

Examples of ariba.util.fieldvalue.OrderedList.elements()

            return false;
        }

        OrderedList listInterface = OrderedList.get(v2);

        for (Iterator e = listInterface.elements(v2); e.hasNext();) {
            Object      o = e.next();

            if ( equal(v1, o) ) {
                return true;
            }
View Full Code Here

Examples of cern.colt.bitvector.BitVector.elements()

  if (minCapacity > oldCapacity) {
      int newCapacity = (oldCapacity * 3)/2 + 1;
    if (newCapacity < minCapacitynewCapacity = minCapacity;
    BitVector vector = toBitVector();
    vector.setSize(newCapacity*bitsPerElement);
    this.bits = vector.elements();
    this.capacity = newCapacity;
  }
}
/**
* Returns the element at the specified position in the receiver; <b>WARNING:</b> Does not check preconditions.
View Full Code Here

Examples of cern.colt.list.DoubleArrayList.elements()

  sumOfPows.add(size());
  sumOfPows.add(sum());
  sumOfPows.add(sumOfSquares());
  for (int i=3; i<=maxOrder; i++) sumOfPows.add(sumOfPowers(i));
 
  return Descriptive.moment(k, c, size(), sumOfPows.elements());
}
/**
* Returns the product, which is <tt>Prod( x[i] )</tt>.
* In other words: <tt>x[0]*x[1]*...*x[size()-1]</tt>.
* @return the product; <tt>Double.NaN</tt> if <tt>!hasSumOfLogarithms()</tt>.
View Full Code Here

Examples of cern.colt.list.IntArrayList.elements()

    if (value==0) {
      DoubleArrayList valueList = values[i];
      indexList.remove(k);
      valueList.remove(k);
      int s = indexList.size();
      if (s>2 && s*3 < indexList.elements().length) {
        indexList.setSize(s*3/2);
        indexList.trimToSize();
        indexList.setSize(s);
       
        valueList.setSize(s*3/2);
 
View Full Code Here

Examples of cern.colt.list.LongArrayList.elements()

                int varName1 = (int) (key >> 21);
                int varName2 = (int) (key & 0x1FFFFF);
               
                //  List of formulaAndTierIndices
                LongArrayList tiers = (LongArrayList) value;
                long[] tiersElements = tiers.elements();
                int tierCount = tiers.size();
               
                for (int i = 0; i < tierCount - 1; i++)
                {
                    long formulaAndTierIndex = tiersElements[i];
View Full Code Here

Examples of ch.akuhn.hapax.corpus.Terms.elements()

    @Test
    public void shouldComputeLogLikelihood() {
      Terms all = new Terms("A A A A A B C C C D D");
      Terms doc = new Terms("A A B B X");
      for (String each: doc.elements()) {
        LogLikelihood loglr = new LogLikelihood(all, doc, each);
        System.out.println(loglr);
      }
    }
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.