Examples of intValue()


Examples of edu.stanford.nlp.util.MutableInteger.intValue()

   * material preceding <i>t</i>.
   */
  public static int leftEdge(Tree t, Tree root) {
    MutableInteger i = new MutableInteger(0);
    if (leftEdge(t, root, i)) {
      return i.intValue();
    } else {
      throw new RuntimeException("Tree is not a descendant of root.");
//      return -1;
    }
  }
View Full Code Here

Examples of edu.uci.ics.hyracks.data.std.primitive.IntegerPointable.intValue()

    private void printInt(PrintStream ps, TaggedValuePointable tvp) {
        IntegerPointable ip = pp.takeOne(IntegerPointable.class);
        try {
            tvp.getValue(ip);
            ps.print(ip.intValue());
        } finally {
            pp.giveBack(ip);
        }
    }
View Full Code Here

Examples of edu.uci.ics.hyracks.data.std.primitive.LongPointable.intValue()

                            tvp.set(p.getByteArray(), p.getStartOffset(), p.getLength());
                            tvp.getValue(longp);
                            if (!Character.isDefined(longp.intValue())) {
                                throw new SystemException(ErrorCode.FOCH0001);
                            }
                            FunctionHelper.writeChar((char) longp.intValue(), out);
                        }
                    } else if (tvp1.getTag() == ValueTag.XS_INTEGER_TAG) {
                        tvp1.getValue(longp);
                        if (!Character.isDefined(longp.intValue())) {
                            throw new SystemException(ErrorCode.FOCH0001);
View Full Code Here

Examples of er.chronic.utils.Tick.intValue()

      boolean done = false;
      if (pointer == Pointer.PointerType.FUTURE) {
        if (tick.isAmbiguous()) {
          List<Calendar> futureDates = new LinkedList<Calendar>();
          futureDates.add(Time.cloneAndAdd(midnight, Calendar.SECOND, tick.intValue() + offsetFix));
          futureDates.add(Time.cloneAndAdd(midnight, Calendar.SECOND, halfDay + tick.intValue() + offsetFix));
          futureDates.add(Time.cloneAndAdd(tomorrowMidnight, Calendar.SECOND, tick.intValue()));
          for (Calendar futureDate : futureDates) {
            if (futureDate.after(now) || futureDate.equals(now)) {
              _currentTime = futureDate;
View Full Code Here

Examples of er.extensions.foundation.ERXMutableInteger.intValue()

        String key = _computeKey(browser);
        ERXMutableInteger count = _decrementReferenceCounterForKey(key);
        if (count == null) {
            // Perhaps forgot to call registerBrowser() but try to remove the browser for sure
            _browserPool().removeObjectForKey(key);
        } else if (count.intValue() <= 0) {
            _browserPool().removeObjectForKey(key);
            _referenceCounters().removeObjectForKey(key);
        }
    }
View Full Code Here

Examples of erjang.EInteger.intValue()

        EInteger d = arg2.testInteger();
       
        if (bin == null || d == null)
            throw ERT.badarg(arg1, arg2);
       
        int depth = d.intValue();
        if (depth < 0) depth=Integer.MAX_VALUE;
       
        ESeq builder = ERT.NIL;
        long bitCount = bin.bitSize();
        if (bitCount > 8*(depth-1)) {
View Full Code Here

Examples of erjang.ESmall.intValue()

      private void push_scaled(Arg value, int factor) {
        if (value.kind == Kind.IMMEDIATE
            && value.value instanceof ESmall) {
          ESmall sm = (ESmall) value.value;
          mv.visitLdcInsn(new Integer(factor * sm.intValue()));
        } else {
          push(value, Type.INT_TYPE);
          push_int(factor);
          mv.visitInsn(IMUL);
        }
View Full Code Here

Examples of hivemall.utils.lang.mutable.MutableInt.intValue()

        Assert.assertTrue(itor.hasNext());
        while(itor.hasNext()) {
            Assert.assertFalse(itor.next() == -1);
            String k = itor.getKey();
            itor.getValue(probe);
            Assert.assertEquals(Integer.valueOf(k).intValue(), probe.intValue());
        }
        Assert.assertEquals(-1, itor.next());
    }
}
View Full Code Here

Examples of ise.mace.models.ScaledDouble.intValue()

  public void testInit_1()
  {
    ScaledDouble instance = new ScaledDouble(0.54758);

    int expResult = 1;
    int result = instance.intValue();
    assertEquals(expResult, result);
  }

  /**
   * Test of intValue method, of class ScaledDouble.
View Full Code Here

Examples of java.lang.Byte.intValue()

      // to care and provides happily values up to 255
      if (b>=128)
        b=(byte)((int)b-256);
      if(debug > 2) {
        Byte B = new Byte(b);
        System.err.print("byte: " + B.intValue()+ " ");
      }
      switch (neg_state) {
      case STATE_DATA:
        if (b==IAC) {
          neg_state = STATE_IAC;
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.