- Sort Score
- Num 10 results
- Language All
Results 21 - 30 of 33 for doubleValue (0.07 seconds)
-
src/test/java/org/codelibs/fess/util/DocumentUtilTest.java
assertEquals(Float.parseFloat(expected), DocumentUtil.getValue(doc, "key1", Float.class).floatValue()); assertEquals(Double.parseDouble(expected), DocumentUtil.getValue(doc, "key1", Double.class).doubleValue()); assertNull(DocumentUtil.getValue(doc, "key2", String.class)); } @Test public void test_strings() { Map<String, Object> doc = new HashMap<>();
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Thu Mar 12 01:46:45 GMT 2026 - 13.6K bytes - Click Count (0) -
android/guava/src/com/google/common/math/StatsAccumulator.java
for (Number value : values) { add(value.doubleValue()); } } /** * Adds the given values to the dataset. * * @param values a series of values, which will be converted to {@code double} values (this may * cause loss of precision) */ public void addAll(Iterator<? extends Number> values) { while (values.hasNext()) { add(values.next().doubleValue()); } } /**
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Apr 14 16:36:11 GMT 2025 - 15.8K bytes - Click Count (0) -
src/main/java/org/codelibs/fess/app/web/admin/backup/AdminBackupAction.java
} else if (value instanceof Long || value instanceof Integer) { buf.append(((Number) value).longValue()); } else if (value instanceof Number) { buf.append(((Number) value).doubleValue()); } else { buf.append('"').append(StringEscapeUtils.escapeJson(value.toString())).append('"'); } return buf; } /**
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Mon Nov 24 02:07:40 GMT 2025 - 32.1K bytes - Click Count (0) -
android/guava/src/com/google/common/primitives/Doubles.java
reverse(array, fromIndex, toIndex); } /** * Returns an array containing each value of {@code collection}, converted to a {@code double} * value in the manner of {@link Number#doubleValue}. * * <p>Elements are copied from the argument collection as if by {@code collection.toArray()}. * Calling this method is as thread-safe as calling that method. *
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 23 16:38:16 GMT 2026 - 27.8K bytes - Click Count (0) -
compat/maven-embedder/src/main/java/org/apache/maven/cli/internal/extension/model/io/xpp3/CoreExtensionsXpp3Reader.java
throws XmlPullParserException { if (s != null) { try { return Double.valueOf(s).doubleValue(); } catch (NumberFormatException nfe) { if (strict) { throw new XmlPullParserException(Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Mon Oct 27 13:24:03 GMT 2025 - 25.3K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/script/groovy/GroovyEngineTest.java
// Double final Object doubleResult = groovyEngine.evaluate("return 3.14159", params); assertTrue(doubleResult instanceof Number); Assertions.assertEquals(3.14159, ((Number) doubleResult).doubleValue(), 0.00001); // Boolean assertEquals(true, groovyEngine.evaluate("return true", params)); assertEquals(false, groovyEngine.evaluate("return false", params)); // NullCreated: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Sun Mar 15 06:03:38 GMT 2026 - 29.1K bytes - Click Count (0) -
android/guava/src/com/google/common/math/DoubleUtils.java
return longBitsToDouble(significand | ONE_BITS); } static double bigToDouble(BigInteger x) { // This is an extremely fast implementation of BigInteger.doubleValue(). JDK patch pending. BigInteger absX = x.abs(); int exponent = absX.bitLength() - 1; // exponent == floor(log2(abs(x))) if (exponent < Long.SIZE - 1) { return x.longValue();
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Mar 03 04:51:56 GMT 2026 - 5K bytes - Click Count (0) -
android/guava/src/com/google/common/math/BigDecimalMath.java
private BigDecimalToDoubleRounder() {} @Override double roundToDoubleArbitrarily(BigDecimal bigDecimal) { return bigDecimal.doubleValue(); } @Override int sign(BigDecimal bigDecimal) { return bigDecimal.signum(); } @Override BigDecimal toX(double d, RoundingMode mode) { return new BigDecimal(d);Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Jul 17 15:26:41 GMT 2025 - 3K bytes - Click Count (0) -
src/main/java/org/codelibs/fess/suggest/util/MapValueExtractor.java
final Object value = map.get(key); if (value == null) { return defaultValue; } if (value instanceof Number numValue) { return numValue.doubleValue(); } return Double.parseDouble(value.toString()); } /** * Gets a Boolean value from the map. * * @param map The source map
Created: Fri Apr 17 09:08:13 GMT 2026 - Last Modified: Sun Feb 01 12:48:24 GMT 2026 - 9.8K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/collect/MapsTest.java
new EntryTransformer<Number, Number, Double>() { @Override public Double transformEntry(Number key, Number value) { return key.doubleValue() + value.doubleValue(); } }; Map<Object, Double> objectKeyed; Map<Number, Double> numberKeyed; Map<Integer, Double> integerKeyed;
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Mar 13 13:01:07 GMT 2026 - 63.2K bytes - Click Count (0)