Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 103 for could (0.15 sec)

  1. android/guava/src/com/google/common/collect/LinkedHashMultimap.java

         * hopefully could avoid implementing Entry or ValueSetLink at all. (But note that that approach
         * requires us to define extra classes -- unfortunate under Android.) *Then* we could consider
         * lying about the fields below on the grounds that we always initialize them just after the
         * constructor -- an example of the kind of lying that our hypothetical bytecode rewriter would
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 23.6K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/reflect/Types.java

       * AnnotatedElement}, which {@code TypeVariable} began to extend only in Java 8. Those methods
       * refer only to types present in Java 7, so we could implement them in {@code TypeVariableImpl}
       * today. (We could probably then make {@code TypeVariableImpl} implement {@code AnnotatedElement}
       * so that we get partial compile-time checking.)
       *
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Apr 17 16:33:44 GMT 2024
    - 23.1K bytes
    - Viewed (0)
  3. guava-testlib/src/com/google/common/collect/testing/AbstractIteratorTester.java

       * {@link PermittedMetaException} instances, which wrap a set of all exceptions that the iterator
       * could throw during the invocation of that method. This is necessary because, e.g., a call to
       * {@code iterator().remove()} of an unmodifiable list could throw either {@link
       * IllegalStateException} or {@link UnsupportedOperationException}. Note that iterator
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 21.3K bytes
    - Viewed (0)
  4. android/guava-testlib/src/com/google/common/testing/GcFinalization.java

        // This class can make no hard guarantees.  The methods in this class are inherently flaky, but
        // we try hard to make them robust in practice.  We could additionally try to add in a system
        // load timeout multiplier.  Or we could try to use a CPU time bound instead of wall clock time
        // bound.  But these ideas are harder to implement.  We do not try to detect or handle a
        // user-specified -XX:+DisableExplicitGC.
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 17:40:56 GMT 2024
    - 11.6K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/hash/Hashing.java

       * Comparisons between the two should take this into account.
       *
       * <p>Fingerprint2011() is a form of Murmur2 on strings up to 32 bytes and a form of CityHash for
       * longer strings. It could have been one or the other throughout. The main advantage of the
       * combination is that CityHash has a bunch of special cases for short strings that don't need to
       * be replicated here. The result will never be 0 or 1.
       *
    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)
  6. guava-tests/test/com/google/common/collect/MinMaxPriorityQueueTest.java

        assertTrue("Could not remove larry", mmHeap.remove("larry"));
        assertEquals(6, mmHeap.size());
        assertFalse("heap contains larry which has been removed", mmHeap.contains("larry"));
        assertTrue("heap does not contain sergey", mmHeap.contains("sergey"));
        assertTrue("Could not remove larry", mmHeap.removeAll(Lists.newArrayList("sergey", "eric")));
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 36.1K bytes
    - Viewed (0)
  7. guava-testlib/src/com/google/common/collect/testing/SpliteratorTester.java

              Comparator<? super E> comparator = spliterator.getComparator();
              if (comparator == null) {
                // A sorted spliterator with no comparator is already using natural order.
                // (We could probably find a way to avoid rawtypes here if we wanted.)
                @SuppressWarnings({"unchecked", "rawtypes"})
                Comparator<? super E> naturalOrder =
    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)
  8. guava/src/com/google/common/collect/ImmutableSet.java

      /*
       * TODO: b/315526394 - Skip the Builder entirely for the of(...) methods, since we don't need to
       * worry that we might trigger the fallback to the JDK-backed implementation? (The varargs one
       * _could_, so we could keep it as it is. Or we could convince ourselves that hash flooding is
       * unlikely in practice there, too.)
       */
    
      /**
       * Returns an immutable set containing the given elements, minus duplicates, in the order each was
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 35.4K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/MinMaxPriorityQueue.java

         *
         * <p>Since the last element of the array is actually in the middle of the sorted structure, a
         * childless aunt node could be smaller, which would corrupt the invariant if this element
         * becomes the new parent of the aunt node. In that case, we first switch the last element with
         * its aunt node, before returning.
         */
        int swapWithConceptuallyLastElement(E actualLastElement) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 34K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/ImmutableMap.java

        /*
         * Even though it's weird to pass a defaultValue that is null, some callers do so. Those who
         * pass a literal "null" should probably just use `get`, but I would expect other callers to
         * pass an expression that *might* be null. This could happen with:
         *
         * - a `getFooOrDefault(@CheckForNull Foo defaultValue)` method that returns
         *   `map.getOrDefault(FOO_KEY, defaultValue)`
         *
    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)
Back to top