Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for Complex (0.27 sec)

  1. guava-tests/test/com/google/common/collect/ImmutableSortedSetTest.java

        assertFalse(set.equals(Sets.newHashSet(4, 5, 6)));
        assertFalse(Sets.newHashSet(4, 5, 6).equals(set));
    
        Set<String> complex = Sets.newTreeSet(STRING_LENGTH);
        Collections.addAll(complex, "in", "the", "a");
        assertEquals(set, complex);
      }
    
      public void testEquals_bothDefaultOrdering_StringVsInt() {
        SortedSet<String> set = of("a", "b", "c");
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 46.1K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/util/concurrent/CycleDetectingLockFactory.java

     *
     * <pre>
     * Thread1: acquire(LockA) --X acquire(LockB)
     * Thread2: acquire(LockB) --X acquire(LockA)
     * </pre>
     *
     * <p>Neither thread will progress because each is waiting for the other. In more complex
     * applications, cycles can arise from interactions among more than 2 locks:
     *
     * <pre>
     * Thread1: acquire(LockA) --X acquire(LockB)
     * Thread2: acquire(LockB) --X acquire(LockC)
     * ...
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri Dec 15 19:31:54 GMT 2023
    - 35.9K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/Ordering.java

     *
     * <ul>
     *   <li>{@link #immutableSortedCopy}
     *   <li>{@link #isOrdered} / {@link #isStrictlyOrdered}
     *   <li>{@link #min} / {@link #max}
     * </ul>
     *
     * <h3>Understanding complex orderings</h3>
     *
     * <p>Complex chained orderings like the following example can be challenging to understand.
     *
     * <pre>{@code
     * Ordering<Foo> ordering =
     *     Ordering.natural()
     *         .nullsFirst()
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Apr 24 19:38:27 GMT 2024
    - 39.4K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/collect/ImmutableSortedSetTest.java

        assertFalse(set.equals(Sets.newHashSet(4, 5, 6)));
        assertFalse(Sets.newHashSet(4, 5, 6).equals(set));
    
        Set<String> complex = Sets.newTreeSet(STRING_LENGTH);
        Collections.addAll(complex, "in", "the", "a");
        assertEquals(set, complex);
      }
    
      public void testEquals_bothDefaultOrdering_StringVsInt() {
        SortedSet<String> set = of("a", "b", "c");
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 45.2K bytes
    - Viewed (0)
  5. android/guava-testlib/src/com/google/common/testing/ClassSanityTester.java

       *       com.google.common.base.Joiner#skipNulls}.
       * </ul>
       *
       * <p>Note that constructors taking a builder object cannot be tested effectively because
       * semantics of builder can be arbitrarily complex. Still, a factory class can be created in the
       * test to facilitate equality testing. For example:
       *
       * <pre>
       * public class FooTest {
       *
       *   private static class FooFactoryForTest {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 08 17:31:55 GMT 2024
    - 33K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/util/concurrent/MoreExecutors.java

       *       (In simple cases, callers can avoid this by registering all tasks with the same {@link
       *       MoreExecutors#newSequentialExecutor} wrapper around {@code directExecutor()}. More
       *       complex cases may require using thread pools or making deeper changes.)
       *   <li>If an exception propagates out of a {@code Runnable}, it is not necessarily seen by any
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Apr 17 16:33:44 GMT 2024
    - 41.8K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/util/concurrent/FuturesTest.java

        // Simple (combined.cancel -> input.cancel -> setOneValue):
        successfulAsList(ImmutableList.of(SettableFuture.create())).cancel(true);
    
        /*
         * Complex (combined.cancel -> input.cancel -> other.set -> setOneValue),
         * to show that this isn't just about problems with the input future we just
         * cancelled:
         */
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 144.5K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/util/concurrent/FuturesTest.java

        // Simple (combined.cancel -> input.cancel -> setOneValue):
        successfulAsList(ImmutableList.of(SettableFuture.create())).cancel(true);
    
        /*
         * Complex (combined.cancel -> input.cancel -> other.set -> setOneValue),
         * to show that this isn't just about problems with the input future we just
         * cancelled:
         */
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 144.5K bytes
    - Viewed (0)
  9. guava-testlib/src/com/google/common/testing/ClassSanityTester.java

       *       com.google.common.base.Joiner#skipNulls}.
       * </ul>
       *
       * <p>Note that constructors taking a builder object cannot be tested effectively because
       * semantics of builder can be arbitrarily complex. Still, a factory class can be created in the
       * test to facilitate equality testing. For example:
       *
       * <pre>
       * public class FooTest {
       *
       *   private static class FooFactoryForTest {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Feb 08 17:31:55 GMT 2024
    - 33K bytes
    - Viewed (0)
Back to top