Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 40 for Food (0.15 sec)

  1. guava-tests/test/com/google/common/eventbus/EventBusTest.java

              @Subscribe
              public void eat(Object food) {
                objectEvents.add(food);
              }
            };
    
        final List<Comparable<?>> compEvents = Lists.newArrayList();
        Object compCatcher =
            new Object() {
              @SuppressWarnings("unused")
              @Subscribe
              public void eat(Comparable<?> food) {
                compEvents.add(food);
              }
            };
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Feb 21 18:32:41 GMT 2024
    - 11.3K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/eventbus/EventBusTest.java

              @Subscribe
              public void eat(Object food) {
                objectEvents.add(food);
              }
            };
    
        final List<Comparable<?>> compEvents = Lists.newArrayList();
        Object compCatcher =
            new Object() {
              @SuppressWarnings("unused")
              @Subscribe
              public void eat(Comparable<?> food) {
                compEvents.add(food);
              }
            };
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 21 18:32:41 GMT 2024
    - 11.3K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/hash/Hashing.java

          return Murmur3_32HashFunction.GOOD_FAST_HASH_32;
        }
        if (bits <= 128) {
          return Murmur3_128HashFunction.GOOD_FAST_HASH_128;
        }
    
        // Otherwise, join together some 128-bit murmur3s
        int hashFunctionsNeeded = (bits + 127) / 128;
        HashFunction[] hashFunctions = new HashFunction[hashFunctionsNeeded];
        hashFunctions[0] = Murmur3_128HashFunction.GOOD_FAST_HASH_128;
        int seed = GOOD_FAST_HASH_SEED;
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Apr 09 00:37:15 GMT 2024
    - 29.2K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/primitives/ImmutableDoubleArrayTest.java

        assertThat(ImmutableDoubleArray.of(0, 1, 3).subArray(1, 1).isEmpty()).isTrue();
        assertThat(ImmutableDoubleArray.of(0, 1, 3).subArray(1, 2).isEmpty()).isFalse();
      }
    
      public void testGet_good() {
        ImmutableDoubleArray iia = ImmutableDoubleArray.of(0, 1, 3);
        assertThat(iia.get(0)).isEqualTo(0.0);
        assertThat(iia.get(2)).isEqualTo(3.0);
        assertThat(iia.subArray(1, 3).get(1)).isEqualTo(3.0);
      }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Jun 06 15:23:21 GMT 2023
    - 20K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/primitives/ImmutableLongArrayTest.java

        assertThat(ImmutableLongArray.of(0, 1, 3).subArray(1, 1).isEmpty()).isTrue();
        assertThat(ImmutableLongArray.of(0, 1, 3).subArray(1, 2).isEmpty()).isFalse();
      }
    
      public void testGet_good() {
        ImmutableLongArray iia = ImmutableLongArray.of(0, 1, 3);
        assertThat(iia.get(0)).isEqualTo(0L);
        assertThat(iia.get(2)).isEqualTo(3L);
        assertThat(iia.subArray(1, 3).get(1)).isEqualTo(3L);
      }
    
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Thu Jun 01 09:32:35 GMT 2023
    - 20.2K bytes
    - Viewed (0)
  6. guava-testlib/test/com/google/common/testing/NullPointerTesterTest.java

        }
      }
    
      public void verifyBarFail(Method method, TwoArg bar) {
        try {
          new NullPointerTester().testMethod(bar, method);
        } catch (AssertionFailedError expected) {
          return; // good...we wanted a failure
        }
        String errorMessage =
            rootLocaleFormat("Should have flagged method %s for %s", method.getName(), bar);
        fail(errorMessage);
      }
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Nov 16 15:12:31 GMT 2023
    - 47.9K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/hash/HashFunction.java

     *       rate when using completely <i>random</i> sample input. The true test of a hash function is
     *       how it performs on representative real-world data, which tends to contain many hidden
     *       patterns and clumps. The goal of a good hash function is to stamp these patterns out as
     *       thoroughly as possible.
     *   <li><b>bit-dispersing:</b> masking out any <i>single bit</i> from a hash code should yield only
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue May 25 18:22:59 GMT 2021
    - 10.9K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/ImmutableMap.java

       */
      @Override
      public ImmutableSet<K> keySet() {
        ImmutableSet<K> result = keySet;
        return (result == null) ? keySet = createKeySet() : result;
      }
    
      /*
       * This could have a good default implementation of return new ImmutableKeySet<K, V>(this),
       * but ProGuard can't figure out how to eliminate that default when RegularImmutableMap
       * overrides it.
       */
      abstract ImmutableSet<K> createKeySet();
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 41.7K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/util/concurrent/SmoothRateLimiter.java

          if (availablePermitsAboveThreshold > 0.0) {
            double permitsAboveThresholdToTake = min(availablePermitsAboveThreshold, permitsToTake);
            // TODO(cpovirk): Figure out a good name for this variable.
            double length =
                permitsToTime(availablePermitsAboveThreshold)
                    + permitsToTime(availablePermitsAboveThreshold - permitsAboveThresholdToTake);
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Apr 04 09:45:04 GMT 2023
    - 19.3K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/ConcurrentHashMultiset.java

       * if occurrences == 0. This satisfies both NullPointerTester and
       * CollectionRemoveTester.testRemove_nullAllowed, but it's not clear that it's
       * a good policy, especially because, in order for the test to pass, the
       * parameter must be misleadingly annotated as @Nullable. I suspect that
       * we'll want to remove @Nullable, add an eager checkNotNull, and loosen up
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 20.9K bytes
    - Viewed (0)
Back to top