Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 33 for contra (0.14 sec)

  1. guava-testlib/src/com/google/common/collect/testing/google/MapGenerators.java

          // assumes that each set is a singleton or less (as is done for the samples)
          for (Object elem : elements) {
            @SuppressWarnings("unchecked") // safe by generator contract
            Entry<String, Collection<Integer>> entry = (Entry<String, Collection<Integer>>) elem;
            Integer value = Iterables.getOnlyElement(entry.getValue());
            builder.put(entry.getKey(), value);
          }
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Feb 26 19:46:10 GMT 2024
    - 8.4K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/primitives/BooleansTest.java

        testRotate(new boolean[] {true}, 0, 0, 1, new boolean[] {true});
        testRotate(new boolean[] {true}, 1, 0, 1, new boolean[] {true});
        testRotate(new boolean[] {true}, 1, 1, 1, new boolean[] {true});
    
        // Rotate the central 5 elements, leaving the ends as-is
        testRotate(
            new boolean[] {false, true, false, true, false, true, false},
            -6,
            1,
            6,
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Mon Mar 04 15:43:29 GMT 2024
    - 23.9K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/primitives/BooleansTest.java

        testRotate(new boolean[] {true}, 0, 0, 1, new boolean[] {true});
        testRotate(new boolean[] {true}, 1, 0, 1, new boolean[] {true});
        testRotate(new boolean[] {true}, 1, 1, 1, new boolean[] {true});
    
        // Rotate the central 5 elements, leaving the ends as-is
        testRotate(
            new boolean[] {false, true, false, true, false, true, false},
            -6,
            1,
            6,
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Mar 04 15:43:29 GMT 2024
    - 23.9K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/Iterables.java

          return Iterators.unmodifiableIterator(iterable.iterator());
        }
    
        @Override
        public String toString() {
          return iterable.toString();
        }
        // no equals and hashCode; it would break the contract!
      }
    
      /** Returns the number of elements in {@code iterable}. */
      public static int size(Iterable<?> iterable) {
        return (iterable instanceof Collection)
            ? ((Collection<?>) iterable).size()
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Apr 24 19:38:27 GMT 2024
    - 42.8K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/primitives/ShortsTest.java

        testRotate(new short[] {1}, 0, 0, 1, new short[] {1});
        testRotate(new short[] {1}, 1, 0, 1, new short[] {1});
        testRotate(new short[] {1}, 1, 1, 1, new short[] {1});
    
        // Rotate the central 5 elements, leaving the ends as-is
        testRotate(new short[] {0, 1, 2, 3, 4, 5, 6}, -6, 1, 6, new short[] {0, 2, 3, 4, 5, 1, 6});
        testRotate(new short[] {0, 1, 2, 3, 4, 5, 6}, -1, 1, 6, new short[] {0, 2, 3, 4, 5, 1, 6});
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 29 15:43:06 GMT 2024
    - 26.6K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/primitives/FloatsTest.java

        testRotate(new float[] {1}, 0, 0, 1, new float[] {1});
        testRotate(new float[] {1}, 1, 0, 1, new float[] {1});
        testRotate(new float[] {1}, 1, 1, 1, new float[] {1});
    
        // Rotate the central 5 elements, leaving the ends as-is
        testRotate(new float[] {0, 1, 2, 3, 4, 5, 6}, -6, 1, 6, new float[] {0, 2, 3, 4, 5, 1, 6});
        testRotate(new float[] {0, 1, 2, 3, 4, 5, 6}, -1, 1, 6, new float[] {0, 2, 3, 4, 5, 1, 6});
    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)
  7. guava-tests/test/com/google/common/util/concurrent/JSR166TestCase.java

     *   <li>These tests are "conformance tests", and do not attempt to test throughput, latency,
     *       scalability or other performance factors (see the separate "jtreg" tests for a set intended
     *       to check these for the most central aspects of functionality.) So, most tests use the
     *       smallest sensible numbers of threads, collection sizes, etc needed to check basic
     *       conformance.
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 17:15:24 GMT 2024
    - 37.7K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/TreeMultiset.java

     *
     * <p><b>Warning:</b> The comparison must be <i>consistent with equals</i> as explained by the
     * {@link Comparable} class specification. Otherwise, the resulting multiset will violate the {@link
     * java.util.Collection} contract, which is specified in terms of {@link Object#equals}.
     *
     * <p>See the Guava User Guide article on <a href=
     * "https://github.com/google/guava/wiki/NewCollectionTypesExplained#multiset">{@code Multiset}</a>.
     *
    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/collect/Multisets.java

       * #intersection(Multiset, Multiset) intersection} {@code (multisetToModify, multisetToRetain)},
       * but mutates {@code multisetToModify} instead of returning a view.
       *
       * <p>In contrast, {@code multisetToModify.retainAll(multisetToRetain)} keeps all occurrences of
       * elements that appear at all in {@code multisetToRetain}, and deletes all occurrences of all
       * other elements.
       *
    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)
  10. android/guava/src/com/google/common/util/concurrent/ExecutionList.java

       * documentation.
       */
      public void add(Runnable runnable, Executor executor) {
        // Fail fast on a null. We throw NPE here because the contract of Executor states that it throws
        // NPE on null listener, so we propagate that contract up into the add method as well.
        checkNotNull(runnable, "Runnable was null.");
        checkNotNull(executor, "Executor was null.");
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 22 21:17:24 GMT 2024
    - 6.9K bytes
    - Viewed (0)
Back to top