Search Options

Results per page
Sort
Preferred Languages
Advance

Results 91 - 100 of 504 for Case (0.16 sec)

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

    import static com.google.common.base.Preconditions.checkArgument;
    import static com.google.common.base.Preconditions.checkNotNull;
    import static com.google.common.collect.CollectPreconditions.checkNonnegative;
    import static java.util.Objects.requireNonNull;
    
    import com.google.common.annotations.GwtCompatible;
    import com.google.common.base.Function;
    import com.google.common.base.Predicate;
    import com.google.common.base.Predicates;
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 22.8K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/collect/ComparatorsTest.java

        Helpers.testComparator(lexy, empty, a, aa, ab, b);
    
        new EqualsTester()
            .addEqualityGroup(lexy, Comparators.lexicographical(comparator))
            .addEqualityGroup(Comparators.lexicographical(String.CASE_INSENSITIVE_ORDER))
            .addEqualityGroup(Ordering.natural())
            .testEquals();
      }
    
      public void testIsInOrder() {
        assertFalse(Comparators.isInOrder(asList(5, 3, 0, 9), Ordering.natural()));
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Apr 11 08:42:51 GMT 2024
    - 6.6K bytes
    - Viewed (0)
  3. guava-testlib/src/com/google/common/collect/testing/testers/CollectionRemoveAllTester.java

          iterator.next();
          fail("Expected ConcurrentModificationException");
        } catch (ConcurrentModificationException expected) {
          // success
        }
      }
    
      /** Trigger the {@code other.size() >= this.size()} case in {@link AbstractSet#removeAll}. */
      @CollectionFeature.Require(SUPPORTS_REMOVE)
      @CollectionSize.Require(absent = ZERO)
      public void testRemoveAll_somePresentLargeCollectionToRemove() {
        assertTrue(
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 7.7K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/base/Optional.java

     * or implied. See the License for the specific language governing permissions and limitations under
     * the License.
     */
    
    package com.google.common.base;
    
    import static com.google.common.base.Preconditions.checkNotNull;
    
    import com.google.common.annotations.GwtCompatible;
    import com.google.errorprone.annotations.DoNotMock;
    import java.io.Serializable;
    import java.util.Iterator;
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 13K bytes
    - Viewed (0)
  5. guava/src/com/google/common/collect/Comparators.java

     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    
    package com.google.common.collect;
    
    import static com.google.common.base.Preconditions.checkNotNull;
    import static com.google.common.collect.CollectPreconditions.checkNonnegative;
    
    import com.google.common.annotations.GwtCompatible;
    import java.util.Comparator;
    import java.util.Iterator;
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 15 16:12:13 GMT 2024
    - 10.7K bytes
    - Viewed (0)
  6. android/guava-testlib/src/com/google/common/testing/GcFinalization.java

    public final class GcFinalization {
      private GcFinalization() {}
    
      /**
       * 10 seconds ought to be long enough for any object to be GC'ed and finalized. Unless we have a
       * gigantic heap, in which case we scale by heap size.
       */
      private static long timeoutSeconds() {
        // This class can make no hard guarantees.  The methods in this class are inherently flaky, but
    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)
  7. android/guava/src/com/google/common/base/Functions.java

     * the License.
     */
    
    package com.google.common.base;
    
    import static com.google.common.base.NullnessCasts.uncheckedCastNullableTToT;
    import static com.google.common.base.Preconditions.checkArgument;
    import static com.google.common.base.Preconditions.checkNotNull;
    
    import com.google.common.annotations.GwtCompatible;
    import java.io.Serializable;
    import java.util.Map;
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 15 16:12:13 GMT 2024
    - 14.1K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/collect/TopKSelectorTest.java

          top.offerAll(list);
          assertThat(top.topK()).containsExactly(1, 2).inOrder();
        }
      }
    
      public void testDifferentComparator() {
        TopKSelector<String> top = TopKSelector.least(3, String.CASE_INSENSITIVE_ORDER);
        top.offerAll(ImmutableList.of("a", "B", "c", "D", "e", "F"));
        assertThat(top.topK()).containsExactly("a", "B", "c").inOrder();
      }
    
      public void testWorstCase() {
        int n = 2000000;
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 3.9K bytes
    - Viewed (0)
  9. android/guava-testlib/src/com/google/common/collect/testing/features/CollectionSize.java

     * {@link
     * com.google.common.collect.testing.FeatureSpecificTestSuiteBuilder#withFeatures(Feature...)}),
     * this annotation specifies each of the different sizes for which a test suite should be built. (In
     * a typical case, the features should include {@link CollectionSize#ANY}.) These semantics are thus
     * a little different from those of other Collection-related features such as {@link
     * CollectionFeature} or {@link SetFeature}.
     *
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Feb 26 19:46:10 GMT 2024
    - 3.4K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/util/concurrent/AggregateFutureState.java

          ATOMIC_HELPER.compareAndSetSeenExceptions(this, null, seenExceptionsLocal);
          /*
           * If another handleException() caller created the set, we need to use that copy in case yet
           * other callers have added to it.
           *
           * This read is guaranteed to get us the right value because we only set this once (here).
           *
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Dec 14 20:35:03 GMT 2023
    - 8.5K bytes
    - Viewed (0)
Back to top