Examples of intValue()


Examples of java.util.logging.Level.intValue()

        if(spcIndex<0){
          throw new IllegalArgumentException();
        }
        Level l=Level.parse(loggingDef.substring(0,spcIndex));
        String prefix=loggingDef.substring(l.getName().length()+1).trim();
        if(lowestLevel.intValue()>l.intValue()){
          lowestLevel=l;
        }
        levels.add(l);
        prefixes.add(prefix);
      }
View Full Code Here

Examples of javolution.util.Index.intValue()

            throws XMLStreamException {
        Index id = (Index) _objectToId.get(obj);
        if (id == null) { // New identifier.
            id = Index.valueOf(_counter++);
            _objectToId.put(obj, id);
            _tmp.clear().append(id.intValue());
            if (_idURI == null) {
                xml.getStreamWriter().writeAttribute(toCsq(_idName),
                        _tmp);
            } else {
                xml.getStreamWriter().writeAttribute(toCsq(_idURI),
View Full Code Here

Examples of jcmdline.IntParam.intValue()

         
          //-bl
          IntParam blOption = (IntParam) cmdLineHandler.getOption(SplitParsedCommand.BL_ARG);         
          if(SplitParsedCommand.S_BLEVEL.equals(parsedCommandDTO.getSplitType())){
            if(blOption.isSet()){     
              parsedCommandDTO.setBookmarksLevel(new Integer(blOption.intValue()));
            }else{
              throw new ParseException(ParseException.ERR_NO_BL);
            }
          }else{
            if(blOption.isSet()){
View Full Code Here

Examples of jnr.constants.Constant.intValue()

        Constant c = getConstants().getConstant(value);
        if (c != null) {
            try {
                e = Enum.valueOf(enumType, c.name());
                reverseLookupMap.put(value, e);
                if (c.intValue() >= 0 && c.intValue() < 256) {
                    E[] values = valueCache;
                    if (values == null) {
                        values = (E[]) Array.newInstance(enumType, 256);
                    }
                    values[c.intValue()] = e;
View Full Code Here

Examples of jnr.constants.platform.AddressFamily.intValue()

    public static IRubyObject pack_sockaddr_un(ThreadContext context, IRubyObject filename) {
        ByteList str = filename.convertToString().getByteList();

        AddressFamily af = AddressFamily.AF_UNIX;
        int high = (af.intValue() & 0xff00) >> 8;
        int low = af.intValue() & 0xff;

        ByteList bl = new ByteList();
        bl.append((byte)high);
        bl.append((byte)low);
View Full Code Here

Examples of jnr.constants.platform.Signal.intValue()

            public void handle(int signal) {
                fired.set(true);
            }
        });
       
        posix.kill(posix.getpid(), s.intValue());
        waitUntilTrue(fired, 200);
        Assert.assertTrue(fired.get());
    }
   
    @Test
View Full Code Here

Examples of jnr.ffi.byref.IntByReference.intValue()

             try {
                           IntByReference status = new IntByReference(0);
                 if(kernel32().GetExitCodeProcess(ptr, status) == 0) {
                    throw runtime.newErrnoEPERMError("unable to call GetExitCodeProcess " + pid);
                 } else {
                     if(status.intValue() != STILL_ACTIVE) {
                     throw runtime.newErrnoEPERMError("Process exists but is not alive anymore " + pid);
                               }
                 }
             } finally {
               kernel32().CloseHandle(ptr);
View Full Code Here

Examples of jodd.mutable.MutableInteger.intValue()

    MutableInteger mu2 = ObjectUtil.cloneViaSerialization(mu);

    assertFalse(mu == mu2);
    assertTrue(mu.equals(mu2));
    assertEquals(mu.intValue(), mu2.intValue());
  }

}
View Full Code Here

Examples of krati.io.serializer.IntSerializer.intValue()

   
    public void testCustomApi() {
        IntSerializer serializer = createSerializer();
       
        int val = 0;
        assertEquals(val, serializer.intValue(serializer.intBytes(val)));
        val = minValue();
        assertEquals(val, serializer.intValue(serializer.intBytes(val)));
        val = maxValue();
        assertEquals(val, serializer.intValue(serializer.intBytes(val)));
        val = anyValue();
View Full Code Here

Examples of lipstone.joshua.parser.types.BigDec.intValue()

      if (temp.length() != 1 || temp.getCarType() != ConsType.NUMBER || ((BigDec) temp.getCar()).lt(BigDec.ZERO) || !((BigDec) temp.getCar()).isInt())
        return null;
      if (((BigDec) temp.getCar()).gt(equationOrder))
        equationOrder = (BigDec) temp.getCar();
    }
    int highestOrder = equationOrder.intValue();
    BigDec[] equationCoefficients = new BigDec[highestOrder + 1];
    for (int i = 0; i < equationCoefficients.length; i++)
      equationCoefficients[i] = BigDec.ZERO;
    for (int i = 0; i < terms.size(); i++) {
      ConsCell temp = termOrders.get(i).containsKey(var) ? parser.run(termOrders.get(i).get(var)) : new ConsCell(BigDec.ZERO, ConsType.NUMBER);
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.