Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 332 for Must (0.25 sec)

  1. android/guava/src/com/google/common/math/Quantiles.java

        private final int scale;
    
        private Scale(int scale) {
          checkArgument(scale > 0, "Quantile scale must be positive");
          this.scale = scale;
        }
    
        /**
         * Specifies a single quantile index to be calculated, i.e. the k in the kth q-quantile.
         *
         * @param index the quantile index, which must be in the inclusive range [0, q] for q-quantiles
         */
        public ScaleAndIndex index(int index) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri May 12 17:02:53 GMT 2023
    - 29.9K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/eventbus/EventBusTest.java

        assertEquals("Three Objects should be delivered.", 3, objectEvents.size());
        assertEquals("String fixture must be first object delivered.", EVENT, objectEvents.get(0));
        assertEquals("Object fixture must be second object delivered.", objEvent, objectEvents.get(1));
        assertEquals(
            "Comparable fixture must be thirdobject delivered.", compEvent, objectEvents.get(2));
    
        // Check the Catcher<Comparable<?>>...
    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)
  3. android/guava-tests/test/com/google/common/eventbus/EventBusTest.java

        assertEquals("Three Objects should be delivered.", 3, objectEvents.size());
        assertEquals("String fixture must be first object delivered.", EVENT, objectEvents.get(0));
        assertEquals("Object fixture must be second object delivered.", objEvent, objectEvents.get(1));
        assertEquals(
            "Comparable fixture must be thirdobject delivered.", compEvent, objectEvents.get(2));
    
        // Check the Catcher<Comparable<?>>...
    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)
  4. CONTRIBUTING.md

      1. Any significant changes should be accompanied by tests. The project already
         has good test coverage, so look at some existing tests if you're unsure
         how to go about it.
      2. All contributions must be licensed Apache 2.0 and all files must have a
         copy of the boilerplate license comment (can be copied from an existing
         file).
      3. Files should be formatted according to Google's [Java style guide][].
    Plain Text
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Nov 17 18:47:47 GMT 2023
    - 3.7K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/util/concurrent/Monitor.java

     * is built into the language and runtime. But the programmer has to remember to avoid a couple of
     * common bugs: The {@code wait()} must be inside a {@code while} instead of an {@code if}, and
     * {@code notifyAll()} must be used instead of {@code notify()} because there are two different
     * logical conditions being awaited.
     *
     * <pre>{@code
     * public class SafeBox<V> {
     *   private V value;
     *
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Dec 04 18:22:01 GMT 2023
    - 38.6K bytes
    - Viewed (0)
  6. guava-testlib/src/com/google/common/collect/testing/SpliteratorTester.java

    public final class SpliteratorTester<E extends @Nullable Object> {
      /** Return type from "contains the following elements" assertions. */
      public interface Ordered {
        /**
         * Attests that the expected values must not just be present but must be present in the order
         * they were given.
         */
        void inOrder();
      }
    
      private abstract static class GeneralSpliterator<E extends @Nullable Object> {
        final Spliterator<E> spliterator;
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 22 18:19:31 GMT 2024
    - 11.9K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/hash/Hashing.java

        checkArgument(iterator.hasNext(), "Must be at least 1 hash code to combine.");
        int bits = iterator.next().bits();
        byte[] resultBytes = new byte[bits / 8];
        for (HashCode hashCode : hashCodes) {
          byte[] nextBytes = hashCode.asBytes();
          checkArgument(
              nextBytes.length == resultBytes.length, "All hashcodes must have the same bit length.");
    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)
  8. android/guava/src/com/google/common/collect/TreeMultiset.java

      /**
       * Creates a new, empty multiset, sorted according to the elements' natural order. All elements
       * inserted into the multiset must implement the {@code Comparable} interface. Furthermore, all
       * such elements must be <i>mutually comparable</i>: {@code e1.compareTo(e2)} must not throw a
       * {@code ClassCastException} for any elements {@code e1} and {@code e2} in the multiset. If the
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 34.2K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/util/concurrent/SimpleTimeLimiter.java

        checkNotNull(target);
        checkNotNull(interfaceType);
        checkNotNull(timeoutUnit);
        checkPositiveTimeout(timeoutDuration);
        checkArgument(interfaceType.isInterface(), "interfaceType must be an interface type");
    
        Set<Method> interruptibleMethods = findInterruptibleMethods(interfaceType);
    
        InvocationHandler handler =
            new InvocationHandler() {
              @Override
              @CheckForNull
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Jun 27 14:21:11 GMT 2023
    - 9.7K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/base/Suppliers.java

      }
    
      @VisibleForTesting
      static class NonSerializableMemoizingSupplier<T extends @Nullable Object> implements Supplier<T> {
        @SuppressWarnings("UnnecessaryLambda") // Must be a fixed singleton object
        private static final Supplier<Void> SUCCESSFULLY_COMPUTED =
            () -> {
              throw new IllegalStateException(); // Should never get called.
            };
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 15.3K bytes
    - Viewed (0)
Back to top