Examples of longValue()


Examples of org.eclipse.jdt.internal.compiler.impl.Constant.longValue()

      case TypeIds.T_short :
        return currentConstant.shortValue() != otherConstant.shortValue();
      case TypeIds.T_char :
        return currentConstant.charValue() != otherConstant.charValue();
      case TypeIds.T_long :
        return currentConstant.longValue() != otherConstant.longValue();
      case TypeIds.T_float :
        return currentConstant.floatValue() != otherConstant.floatValue();
      case TypeIds.T_double :
        return currentConstant.doubleValue() != otherConstant.doubleValue();
      case TypeIds.T_boolean :
View Full Code Here

Examples of org.elasticsearch.common.xcontent.XContentParser.longValue()

                                    currentFieldName = parser.currentName();
                                } else if (token.isValue()) {
                                    if ("physical_name".equals(currentFieldName) || "physicalName".equals(currentFieldName)) {
                                        physicalName = parser.text();
                                    } else if ("length".equals(currentFieldName)) {
                                        size = parser.longValue();
                                    } else if ("checksum".equals(currentFieldName)) {
                                        checksum = parser.text();
                                    }
                                }
                            }
View Full Code Here

Examples of org.ethereum.vm.DataWord.longValue()

        DataWord value_2 = repository.getStorageValue(contractA_addr_bytes, new DataWord(01));


        repository.close();
        assertEquals(expectedVal_1, value_1.longValue());
        assertEquals(expectedVal_2, value_2.longValue());

        // TODO: check that the value pushed after exec is 1
    }

    @Test // contractB call contractA with return expectation
View Full Code Here

Examples of org.gdbms.engine.values.NumericValue.longValue()

                 */
                if (Double.toString(nv.doubleValue()).length() - 1 > precision) {
                    return "too long";
                }
            } else {
                if (Long.toString(nv.longValue()).length() > precision) {
                    return "too long";
                }
            }
           
            return null;
View Full Code Here

Examples of org.jamesii.core.math.complex.Complex.longValue()

  }

  /** Tests the {@link Complex#longValue()} method. */
  public void testLongValue() {
    Complex c = new Complex(Math.random() * 100, Math.random() * 100);
    assertEquals(c.longValue(), (long) c.getReal());
  }

  /** Tests the {@link Complex#byteValue()} method. */
  public void testByteValue() {
    Complex c = new Complex(Math.random() * 100, Math.random() * 100);
 
View Full Code Here

Examples of org.jboss.resteasy.core.request.QualityValue.longValue()

   @Test
   public void numbers()
   {
      QualityValue x = QualityValue.valueOf("0.08");
      assertEquals(80, x.intValue());
      assertEquals(80L, x.longValue());
      assertEquals(0.08f, x.floatValue());
      assertEquals(0.08d, x.doubleValue());
   }

}
View Full Code Here

Examples of org.jscience.mathematics.number.LargeInteger.longValue()

   
    if(op.equals("factorial")){
      //System.out.println("INput is: "+input);
     
      if(input.isLessThan(LargeInteger.valueOf(20)) && input.isGreaterThan(LargeInteger.ZERO)){
        result = LargeInteger.valueOf(factorial(input.longValue()));
       
        return ParseResult.success(tokens.replaceWithTokens(templatePos, templatePos+template.size(), result));
      }
     
     
View Full Code Here

Examples of org.neo4j.batchimport.utils.Params.longValue()

        String relationshipsFile = params.string("relationships.csv");

        if (graphDb.exists()) {
            FileUtils.deleteRecursively(graphDb);
        }
        final long nodesToCreate = params.longValue("#nodes");
        ParallelImporter importer = new ParallelImporter(graphDb,nodesFile,relationshipsFile,
                nodesToCreate, params.intValue("#max-props-per-node"),
                params.intValue("#usual-rels-pernode"),
                params.intValue("#max-rels-per-node"),
                params.intValue("#max-props-per-rel"),
View Full Code Here

Examples of org.openrdf.model.Literal.longValue()

            else if (datatype.equals(XMLSchema.INTEGER)) {
              BigInteger integerValue = literal.integerValue();
              booleanValue = !integerValue.equals(BigInteger.ZERO);
            }
            else if (XMLDatatypeUtil.isIntegerDatatype(datatype)) {
              booleanValue = literal.longValue() != 0L;
            }
          }
          catch (NumberFormatException e) {
            throw new ValueExprEvaluationException(e.getMessage(), e);
          }
View Full Code Here

Examples of org.pdf4j.saxon.value.NumericValue.longValue()

        NumericValue index = (NumericValue)argument[1].evaluateItem(context);
        if (index == null) {
            return null;
        }
        if (index.compareTo(Integer.MAX_VALUE) <= 0 && index.isWholeNumber()) {
            int intindex = (int)index.longValue();
            if (intindex < 1) {
                return null;
            }
            SequenceIterator base = argument[0].iterate(context);
            if (intindex == 1) {
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.