Examples of intValue()


Examples of com.ericsson.otp.erlang.OtpErlangInt.intValue()

            }
        }
        if (object instanceof OtpErlangInt) {
            final OtpErlangInt l = (OtpErlangInt) object;
            try {
                return l.intValue();
            } catch (final OtpErlangRangeException e) {
            }
        }
        return defaultValue;
    }
View Full Code Here

Examples of com.ericsson.otp.erlang.OtpErlangLong.intValue()

            final OtpErlangTuple ml = (OtpErlangTuple) t.elementAt(1);
            final OtpErlangObject ml0 = ml.elementAt(0);
            int stackFrameNo;
            final OtpErlangLong n = (OtpErlangLong) t.elementAt(3);
            try {
                stackFrameNo = n.intValue();
            } catch (final OtpErlangRangeException e) {
                stackFrameNo = -1;
            }
            final String module = m.atomValue();
            int line;
View Full Code Here

Examples of com.fasterxml.jackson.databind.JsonNode.intValue()

                    }
                    if (clazz.equals(Double.class)) {
                        val = arg.doubleValue();
                    }
                    if (clazz.equals(Integer.class)) {
                        val = arg.intValue();
                    }
                    if (clazz.equals(Float.class)) {
                        val = (float)arg.doubleValue();
                    }
                }
View Full Code Here

Examples of com.google.code.or.common.glossary.UnsignedLong.intValue()

    else throw new NestableRuntimeException("assertion failed, should NOT reach here");
  }
 
  public StringColumn readLengthCodedString() throws IOException {
    final UnsignedLong length = readUnsignedLong();
    return length == null ? null : readFixedLengthString(length.intValue());
  }
 
  public StringColumn readNullTerminatedString() throws IOException {
    final XSerializer s = new XSerializer(128); // 128 should be OK for most schema names
    while(true) {
View Full Code Here

Examples of com.google.common.primitives.UnsignedLong.intValue()

        Arrays.equals(("name_" + id.toString()).getBytes(), row.getBytes(nameCell.getName())));

    Cell ageCell = row.next();
    Assert.assertEquals("age", ageCell.getName());
    Assert.assertEquals(Integer.class, ageCell.getType());
    Assert.assertEquals(Integer.valueOf(2 * id.intValue()), row.getInt(ageCell.getName()));

    vtgate.close();
  }

  /**
 
View Full Code Here

Examples of com.ibm.sbt.util.DataNavigator.intValue()

            try {
                String title = nav.stringValue("path");
                String[] result = title.split("/");
                entry.setTitle(result[result.length - 1]);
                entry.setUpdated(nav.dateValue("modified"));
                entry.setBytes(nav.intValue("bytes"));
                entry.setSize(nav.stringValue("size"));
                entry.setAuthorName(params.get("subscriberId"));
                entry.setVersion(String.valueOf( nav.doubleValue("revision")));
                boolean isDir = nav.booleanValue("is_dir");
                entry.setIsDirectory(isDir);
View Full Code Here

Examples of com.itextpdf.text.pdf.PdfNumber.intValue()

          fieldLocks.add(new FieldLock(action, params.getAsArray(PdfName.FIELDS)));
        }
        PdfNumber p = params.getAsNumber(PdfName.P);
        if (p == null)
          continue;
        switch (p.intValue()) {
        default:
          break;
        case 1:
          fillInAllowed &= false;
        case 2:
View Full Code Here

Examples of com.lightcrafts.utils.Rational.intValue()

                // Print rational numbers better.
                //
                final Rational r =
                    ((RationalMetaValue)value).getRationalValue();
                if ( r.isInteger() )
                    return Integer.toString( r.intValue() );
                if ( r.numerator() > r.denominator() )
                    return TextUtil.tenths( r );
            default:
                return null;
        }
View Full Code Here

Examples of com.liusoft.dlog4j.beans.ConfigBean.intValue()

    return intValue(site_id, key, -1);
  }

  public static int intValue(int site_id, String key, int defaultValue) {
    ConfigBean cb = getConfig(site_id, key);   
    return (cb==null)?defaultValue:cb.intValue();
  }

  public static String stringValue(int site_id, String key) {
    ConfigBean cb = getConfig(site_id, key);   
    return (cb==null)?null:cb.stringValue();
View Full Code Here

Examples of com.lowagie.text.pdf.PdfNumber.intValue()

     * A content operator implementation (Tr).
     */
    private static class SetTextRenderMode implements ContentOperator{
        public void invoke(PdfContentStreamProcessor processor, PdfLiteral operator, ArrayList operands) {
            PdfNumber render = (PdfNumber)operands.get(0);
            processor.gs().renderMode = render.intValue();
        }
    }

    /**
     * A content operator implementation (Ts).
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.