Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 37 for double (0.3 sec)

  1. android/guava-tests/test/com/google/common/collect/TreeMultimapNaturalTest.java

      public void testCreateFromSortedSetMultimap() {
        SortedSetMultimap<Double, Double> tree = TreeMultimap.create(KEY_COMPARATOR, VALUE_COMPARATOR);
        tree.put(1.0, 2.0);
        tree.put(2.0, 3.0);
        tree.put(3.0, 4.0);
        tree.put(4.0, 5.0);
    
        SortedSetMultimap<Double, Double> sorted = Multimaps.unmodifiableSortedSetMultimap(tree);
        TreeMultimap<Double, Double> copyFromSorted = TreeMultimap.create(sorted);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 22.6K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/core/convert/DoubleConversionUtil.java

         * @param pattern
         *            パターン文字列
         * @return 変換された{@link Double}
         */
        public static Double toDouble(final Object o, final String pattern) {
            if (o == null) {
                return null;
            } else if (o instanceof Double) {
                return (Double) o;
            } else if (o instanceof Number) {
                return new Double(((Number) o).doubleValue());
            } else if (o instanceof String) {
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 3.6K bytes
    - Viewed (0)
  3. src/test/java/org/codelibs/core/convert/BigDecimalConversionUtilTest.java

            assertEquals(0, new BigDecimal("0.01").compareTo(BigDecimalConversionUtil.toBigDecimal(new Double(0.01D))));
            assertEquals(0, new BigDecimal("0.001").compareTo(BigDecimalConversionUtil.toBigDecimal(new Double(0.001D))));
            assertEquals(0, new BigDecimal("0.0001").compareTo(BigDecimalConversionUtil.toBigDecimal(new Double(0.0001D))));
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 4.8K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/collect/TreeMultimapNaturalTest.java

      public void testCreateFromSortedSetMultimap() {
        SortedSetMultimap<Double, Double> tree = TreeMultimap.create(KEY_COMPARATOR, VALUE_COMPARATOR);
        tree.put(1.0, 2.0);
        tree.put(2.0, 3.0);
        tree.put(3.0, 4.0);
        tree.put(4.0, 5.0);
    
        SortedSetMultimap<Double, Double> sorted = Multimaps.unmodifiableSortedSetMultimap(tree);
        TreeMultimap<Double, Double> copyFromSorted = TreeMultimap.create(sorted);
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 22.6K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/core/convert/NumberConversionUtil.java

                if (i != null) {
                    return i;
                }
                return Integer.valueOf(0);
            } else if (type == double.class) {
                final Double d = DoubleConversionUtil.toDouble(o);
                if (d != null) {
                    return d;
                }
                return new Double(0);
            } else if (type == long.class) {
                final Long l = LongConversionUtil.toLong(o);
                if (l != null) {
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 5.7K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/core/convert/StringConversionUtil.java

        /** WAVE DASH */
        public static final char WAVE_DASH = '\u301C';
    
        /** FULLWIDTH TILDE */
        public static final char FULLWIDTH_TILDE = '\uFF5E';
    
        /** DOUBLE VERTICAL LINE */
        public static final char DOUBLE_VERTICAL_LINE = '\u2016';
    
        /** PARALLEL TO */
        public static final char PARALLEL_TO = '\u2225';
    
        /** MINUS SIGN */
        public static final char MINUS_SIGN = '\u2212';
    
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 6.5K bytes
    - Viewed (0)
  7. src/test/java/org/codelibs/core/convert/DoubleConversionUtilTest.java

     *
     */
    public class DoubleConversionUtilTest extends TestCase {
    
        /**
         * @throws Exception
         */
        public void testToDouble() throws Exception {
            assertEquals(new Double("1000.5"), DoubleConversionUtil.toDouble("1,000.5"));
        }
    
        /**
         * @throws Exception
         */
        public void testToPrimitiveDouble() throws Exception {
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 1.5K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/hash/BloomFilter.java

       * #create(Funnel, int, double)}, or smaller. If it is significantly higher, it is usually the
       * case that too many elements (more than expected) have been put in the {@code BloomFilter},
       * degenerating it.
       *
       * @since 14.0 (since 11.0 as expectedFalsePositiveProbability())
       */
      public double expectedFpp() {
        return Math.pow((double) bits.bitCount() / bitSize(), numHashFunctions);
      }
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 23.1K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/collect/StreamsTest.java

        assertThat(Streams.concat(LongStream.of(1, 2, 3), LongStream.generate(() -> 5)).limit(5))
            .containsExactly(1L, 2L, 3L, 5L, 5L)
            .inOrder();
      }
    
      public void testConcatInfiniteStream_double() {
        assertThatDoubleStream(
                Streams.concat(DoubleStream.of(1, 2, 3), DoubleStream.generate(() -> 5)).limit(5))
            .containsExactly(1., 2., 3., 5., 5.)
            .inOrder();
      }
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 20K bytes
    - Viewed (0)
  10. guava-testlib/src/com/google/common/testing/FreshValueGenerator.java

      Float generateFloatObject() {
        return new Float(generateFloat());
      }
    
      @Generates
      double generateDouble() {
        return generateInt();
      }
    
      @SuppressWarnings("removal") // b/321209431 -- maybe just use valueOf here?
      @Generates
      Double generateDoubleObject() {
        return new Double(generateDouble());
      }
    
      @Generates
      short generateShort() {
        return (short) generateInt();
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Apr 17 16:33:44 GMT 2024
    - 28.6K bytes
    - Viewed (0)
Back to top