Examples of intValue()


Examples of Framework.IntegerData.intValue()

                this.radioList.clearSelection();

                return this.radioList;
              }
              else {
                num = anInt.intValue();
              }
            }
            this.radioList.setSelectedIndex(num-1);
          }
          // must be s string or textdata
View Full Code Here

Examples of aima.core.util.math.MixedRadixNumber.intValue()

      for (RVInfo rvInfo : randomVarInfo.values()) {
        possibleWorld.put(rvInfo.getVariable(), rvInfo
            .getDomainValueAt(mrn.getCurrentNumeralValue(rvInfo
                .getRadixIdx())));
      }
      pti.iterate(possibleWorld, values[mrn.intValue()]);

    } while (mrn.increment());
  }

  /**
 
View Full Code Here

Examples of booton.translator.annotation.PrimitiveMarker.intValue()

        Annotation[] set = annotations[0];
        assert set.length == 1;
        assert set[0] instanceof PrimitiveMarker;

        PrimitiveMarker primitive = (PrimitiveMarker) set[0];
        assert primitive.intValue() == 2;

        set = annotations[1];
        assert set.length == 1;
        assert set[0] instanceof StringMarker;
View Full Code Here

Examples of client.net.sf.saxon.ce.value.NumericValue.intValue()

        NumericValue gp = (NumericValue)gp0;
        RegexIterator iter = c.getCurrentRegexIterator();
        if (iter == null) {
            return StringValue.EMPTY_STRING;
        }
        String s = iter.getRegexGroup(gp.intValue());
        if (s == null) {
            return StringValue.EMPTY_STRING;
        }
        return StringValue.makeStringValue(s);
    }
View Full Code Here

Examples of com.alibaba.fastjson.parser.JSONLexer.intValue()

                throw new JSONException("syntax error");
            }
           
            int val;
            if (lexer.token() == JSONToken.LITERAL_INT) {
                val = lexer.intValue();
                lexer.nextToken();
            } else {
                throw new JSONException("syntax error : " + lexer.tokenName());
            }
View Full Code Here

Examples of com.alibaba.fastjson.parser.JSONScanner.intValue()

    public void ftest_parse_long() throws Exception {
        System.out.println(System.currentTimeMillis());
        JSONScanner lexer = new JSONScanner("1293770846");
        lexer.scanNumber();
        Assert.assertEquals(new Integer(1293770846), (Integer) lexer.integerValue());
        Assert.assertEquals(1293770846, lexer.intValue());
    }

    public void ftest_parse_long_1() throws Exception {
        System.out.println(System.currentTimeMillis());
        JSONScanner lexer = new JSONScanner(Integer.toString(Integer.MAX_VALUE));
View Full Code Here

Examples of com.dd.plist.NSNumber.intValue()

      NSArray rearrangedArray = new NSArray(length);
      NSNumber defaultDevice = null;
      int index = putDefaultFirst ? 1 : 0;
      for (int i = 0; i < length; i++) {
        NSNumber d = (NSNumber) devices.objectAtIndex(i);
        if (d.intValue() == device.getDeviceFamily()) {
          defaultDevice = d;
        } else {
          rearrangedArray.setValue(index, d);
          index++;
        }
View Full Code Here

Examples of com.declarativa.interprolog.TermModel.intValue()

    long length = 0;

    {
      String G = "leg(L),buildTermModel(L,LL)";
      TermModel length_model = (TermModel) (prologEngine.deterministicGoal(G, "[LL]"))[0];
      length = length_model.intValue();
    }

    long endTime = System.currentTimeMillis();

    System.out.println("Got " + length + " solutions in "
View Full Code Here

Examples of com.drew.lang.Rational.intValue()

    public String getCompressionLevelDescription() throws MetadataException
    {
        if (!_directory.containsTag(ExifDirectory.TAG_COMPRESSION_LEVEL)) return null;
        Rational compressionRatio = _directory.getRational(ExifDirectory.TAG_COMPRESSION_LEVEL);
        String ratio = compressionRatio.toSimpleString(_allowDecimalRepresentationOfRationals);
        if (compressionRatio.isInteger() && compressionRatio.intValue() == 1) {
            return ratio + " bit/pixel";
        } else {
            return ratio + " bits/pixel";
        }
    }
View Full Code Here

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

                    sev = IMarker.SEVERITY_WARNING;
                }
            } else {
                final OtpErlangLong tag = (OtpErlangLong) sev_tag;
                try {
                    switch (tag.intValue()) {
                    case 0:
                        sev = IMarker.SEVERITY_ERROR;
                        break;
                    case 1:
                        sev = IMarker.SEVERITY_WARNING;
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.