Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 26 for nana (0.2 sec)

  1. guava-tests/test/com/google/common/math/LinearTransformationTest.java

      }
    
      public void testMapping_nanY1() {
        assertThrows(
            IllegalArgumentException.class, () -> LinearTransformation.mapping(1.2, Double.NaN));
      }
    
      public void testMappingAnd_nanX2() {
        assertThrows(
            IllegalArgumentException.class,
            () -> LinearTransformation.mapping(1.2, 3.4).and(Double.NaN, 7.8));
      }
    
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 7.1K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/math/LinearTransformationTest.java

      }
    
      public void testMapping_nanY1() {
        assertThrows(
            IllegalArgumentException.class, () -> LinearTransformation.mapping(1.2, Double.NaN));
      }
    
      public void testMappingAnd_nanX2() {
        assertThrows(
            IllegalArgumentException.class,
            () -> LinearTransformation.mapping(1.2, 3.4).and(Double.NaN, 7.8));
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 7.1K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/util/concurrent/RateLimiter.java

     * granted immediately, but it is the <i>next</i> request that will experience extra throttling,
     * thus paying for the cost of the expensive task.
     *
     * @author Dimitris Andreou
     * @since 13.0
     */
    // TODO(user): switch to nano precision. A natural unit of cost is "bytes", and a micro precision
    // would mean a maximum rate of "1MB/s", which might be small in some cases.
    @Beta
    @J2ktIncompatible
    @GwtIncompatible
    @ElementTypesAreNonnullByDefault
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Apr 04 09:45:04 GMT 2023
    - 18.2K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/ImmutableSetMultimap.java

       *
       * // is equivalent to
       *
       * static final Multimap<Character, String> FIRST_LETTER_MULTIMAP =
       *     new ImmutableSetMultimap.Builder<Character, String>()
       *         .put('b', "anana")
       *         .putAll('a', "pple", "sparagus")
       *         .putAll('c', "arrot", "herry")
       *         .build();
       * }</pre>
       *
       * @since 33.2.0 (available since 21.0 in guava-jre)
       */
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 23.6K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/primitives/FloatsTest.java

          assertWithMessage("" + value)
              .that(Floats.indexOf(new float[] {5f, value, value, 5f}, new float[] {value, value}))
              .isEqualTo(1);
        }
        assertThat(Floats.indexOf(new float[] {5f, NaN, NaN, 5f}, new float[] {NaN, NaN}))
            .isEqualTo(-1);
      }
    
      public void testLastIndexOf() {
        assertThat(Floats.lastIndexOf(EMPTY, (float) 1)).isEqualTo(-1);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 29 15:43:06 GMT 2024
    - 29.5K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/util/concurrent/UncheckedThrowingFuture.java

     * not wrapped in {@code ExecutionException}. For just a normal failure, use {@link
     * SettableFuture}).
     *
     * <p>Useful for testing the behavior of Future utilities against odd futures.
     *
     * @author Anthony Zana
     */
    @GwtCompatible
    final class UncheckedThrowingFuture<V> extends AbstractFuture<V> {
    
      public static <V> ListenableFuture<V> throwingError(Error error) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 12 20:02:10 GMT 2018
    - 3.2K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/primitives/DoublesTest.java

              .that(Doubles.indexOf(new double[] {5.0, value, value, 5.0}, new double[] {value, value}))
              .isEqualTo(1);
        }
        assertThat(Doubles.indexOf(new double[] {5.0, NaN, NaN, 5.0}, new double[] {NaN, NaN}))
            .isEqualTo(-1);
      }
    
      public void testLastIndexOf() {
        assertThat(Doubles.lastIndexOf(EMPTY, (double) 1)).isEqualTo(-1);
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Thu Feb 29 15:43:06 GMT 2024
    - 31.5K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/primitives/DoublesTest.java

              .that(Doubles.indexOf(new double[] {5.0, value, value, 5.0}, new double[] {value, value}))
              .isEqualTo(1);
        }
        assertThat(Doubles.indexOf(new double[] {5.0, NaN, NaN, 5.0}, new double[] {NaN, NaN}))
            .isEqualTo(-1);
      }
    
      public void testLastIndexOf() {
        assertThat(Doubles.lastIndexOf(EMPTY, (double) 1)).isEqualTo(-1);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 29 15:43:06 GMT 2024
    - 31.5K bytes
    - Viewed (0)
  9. guava/src/com/google/common/collect/ImmutableListMultimap.java

       *
       * // is equivalent to
       *
       * static final Multimap<Character, String> FIRST_LETTER_MULTIMAP =
       *     new ImmutableListMultimap.Builder<Character, String>()
       *         .put('b', "anana")
       *         .putAll('a', "pple", "sparagus")
       *         .putAll('c', "arrot", "herry")
       *         .build();
       * }</pre>
       *
       * @since 21.0
       */
      public static <T extends @Nullable Object, K, V>
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Aug 24 01:40:03 GMT 2023
    - 17.1K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/io/ByteStreamsTest.java

        assertEquals(bytes[1], actual[3]);
      }
    
      public void testNewDataInput_readLine() {
        ByteArrayDataInput in =
            ByteStreams.newDataInput(
                "This is a line\r\nThis too\rand this\nand also this".getBytes(Charsets.UTF_8));
        assertEquals("This is a line", in.readLine());
        assertEquals("This too", in.readLine());
        assertEquals("and this", in.readLine());
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 21.9K bytes
    - Viewed (0)
Back to top