Search Options

Results per page
Sort
Preferred Languages
Advance

Results 231 - 240 of 373 for doubles (0.06 sec)

  1. android/guava-tests/test/com/google/common/hash/AbstractStreamingHasherTest.java

        HashCode unused = sink.hash();
        sink.assertInvariants(4);
        sink.assertBytes(new byte[] {1, 2, 3, 4});
      }
    
      public void testDouble() {
        Sink sink = new Sink(8);
        sink.putDouble(Double.longBitsToDouble(0x0807060504030201L));
        HashCode unused = sink.hash();
        sink.assertInvariants(8);
        sink.assertBytes(new byte[] {1, 2, 3, 4, 5, 6, 7, 8});
      }
    
      public void testCorrectExceptions() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 23 14:22:54 UTC 2024
    - 8.5K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/base/OptionalTest.java

      }
    
      public void testPresentInstances_wildcards() {
        List<Optional<? extends Number>> optionals =
            ImmutableList.<Optional<? extends Number>>of(Optional.<Double>absent(), Optional.of(2));
        Iterable<Number> onlyPresent = Optional.presentInstances(optionals);
        assertThat(onlyPresent).containsExactly(2);
      }
    
      private static Optional<Integer> getSomeOptionalInt() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Sep 17 18:14:12 UTC 2024
    - 10.5K bytes
    - Viewed (0)
  3. test-site/activator.bat

    	@REM remove trailing "\" from path
    	set ACTIVATOR_HOME=!ACTIVATOR_HOME:~0,-1!
    )
    
    set ERROR_CODE=0
    set APP_VERSION=1.3.2
    set ACTIVATOR_LAUNCH_JAR=activator-launch-%APP_VERSION%.jar
    
    rem Detect if we were double clicked, although theoretically A user could
    rem manually run cmd /c
    for %%x in (%cmdcmdline%) do if %%~x==/c set DOUBLECLICKED=1
    
    rem FIRST we load a config file of extra options (if there is one)
    Registered: Fri Nov 08 09:08:12 UTC 2024
    - Last Modified: Mon Apr 20 08:41:37 UTC 2015
    - 7.2K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/core/beans/impl/BeanDescImpl.java

                } else if (paramTypes[index] == float.class) {
                    args[index] = FloatConversionUtil.toFloat(args[index]);
                    return true;
                } else if (paramTypes[index] == double.class) {
                    args[index] = DoubleConversionUtil.toDouble(args[index]);
                    return true;
                }
            } else {
                if (paramTypes[index] == Byte.class) {
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 26.1K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/Maps.java

       *
       * <pre>{@code
       * Map<String, Integer> map = ImmutableMap.of("a", 4, "b", 9);
       * Function<Integer, Double> sqrt =
       *     new Function<Integer, Double>() {
       *       public Double apply(Integer in) {
       *         return Math.sqrt((int) in);
       *       }
       *     };
       * Map<String, Double> transformed = Maps.transformValues(map, sqrt);
       * System.out.println(transformed);
       * }</pre>
       *
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 161.6K bytes
    - Viewed (0)
  6. guava/src/com/google/common/collect/Maps.java

       *
       * <pre>{@code
       * Map<String, Integer> map = ImmutableMap.of("a", 4, "b", 9);
       * Function<Integer, Double> sqrt =
       *     new Function<Integer, Double>() {
       *       public Double apply(Integer in) {
       *         return Math.sqrt((int) in);
       *       }
       *     };
       * Map<String, Double> transformed = Maps.transformValues(map, sqrt);
       * System.out.println(transformed);
       * }</pre>
       *
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 167.4K bytes
    - Viewed (0)
  7. android/guava-testlib/src/com/google/common/collect/testing/SpliteratorTester.java

                () -> new GeneralSpliteratorOfPrimitive<>(spliteratorSupplier.get(), c -> c::accept)));
      }
    
      /**
       * @since NEXT (but since 28.1 in the JRE flavor)
       */
      public static SpliteratorTester<Double> ofDouble(
          Supplier<Spliterator.OfDouble> spliteratorSupplier) {
        return new SpliteratorTester<>(
            ImmutableSet.of(
                () -> new GeneralSpliteratorOfObject<>(spliteratorSupplier.get()),
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 31 14:20:11 UTC 2024
    - 12.5K bytes
    - Viewed (0)
  8. guava-testlib/src/com/google/common/collect/testing/SpliteratorTester.java

                () -> new GeneralSpliteratorOfPrimitive<>(spliteratorSupplier.get(), c -> c::accept)));
      }
    
      /**
       * @since 28.1 (but only since 33.4.0 in the Android flavor)
       */
      public static SpliteratorTester<Double> ofDouble(
          Supplier<Spliterator.OfDouble> spliteratorSupplier) {
        return new SpliteratorTester<>(
            ImmutableSet.of(
                () -> new GeneralSpliteratorOfObject<>(spliteratorSupplier.get()),
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 31 14:20:11 UTC 2024
    - 12.1K bytes
    - Viewed (0)
  9. src/main/java/jcifs/smb/SmbRandomAccessFile.java

            if ( ( read(this.tmp, 0, 4) ) < 0 ) {
                throw new SmbEndOfFileException();
            }
            return Encdec.dec_floatbe(this.tmp, 0);
        }
    
    
        @Override
        public final double readDouble () throws SmbException {
            if ( ( read(this.tmp, 0, 8) ) < 0 ) {
                throw new SmbEndOfFileException();
            }
            return Encdec.dec_doublebe(this.tmp, 0);
        }
    
    
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Wed Jan 08 12:01:33 UTC 2020
    - 18.5K bytes
    - Viewed (0)
  10. src/main/java/jcifs/smb1/dcerpc/ndr/NdrBuffer.java

            advance(8);
        }
        public long dec_ndr_hyper() {
            align(8);
            long val = Encdec.dec_uint64le(buf, index);
            advance(8);
            return val;
        }
        /* float */
        /* double */
        public void enc_ndr_string(String s) {
            align(4);
            int i = index;
            int len = s.length();
            Encdec.enc_uint32le(len + 1, buf, i); i += 4;
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Fri Mar 22 20:39:42 UTC 2019
    - 6.1K bytes
    - Viewed (0)
Back to top