Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 20 for Dadd (0.15 sec)

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

        Set<Set<Integer>> expected = newHashSet();
        expected.add(ImmutableSet.<Integer>of());
        expected.add(ImmutableSet.of(1));
        expected.add(ImmutableSet.of(2));
        expected.add(ImmutableSet.of(3));
        expected.add(ImmutableSet.of(1, 2));
        expected.add(ImmutableSet.of(1, 3));
        expected.add(ImmutableSet.of(2, 3));
        expected.add(ImmutableSet.of(1, 2, 3));
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 49.3K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/collect/IteratorsTest.java

        List<String> list = newArrayList();
        list.add("a");
        list.add("b");
        Iterator<String> iterator = list.iterator();
        assertEquals("b", get(iterator, 1));
        assertFalse(iterator.hasNext());
      }
    
      public void testGet_atSize() {
        List<String> list = newArrayList();
        list.add("a");
        list.add("b");
        Iterator<String> iterator = list.iterator();
        try {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 55.7K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/cache/CacheLoadingTest.java

                Map<Object, Object> result = Maps.newHashMap();
                for (Object key : keys) {
                  Object value = new Object();
                  result.put(key, value);
                  // add extra entries
                  result.put(value, key);
                }
                return result;
              }
            };
        LoadingCache<Object, Object> cache = CacheBuilder.newBuilder().build(loader);
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 86.2K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/collect/MapsTest.java

        try {
          map.subMap("a", "z").keySet().add("a");
          fail();
        } catch (UnsupportedOperationException expected) {
        }
        try {
          map.tailMap("a").keySet().add("a");
          fail();
        } catch (UnsupportedOperationException expected) {
        }
        try {
          map.headMap("r").keySet().add("a");
          fail();
        } catch (UnsupportedOperationException expected) {
        }
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Mar 04 16:06:01 GMT 2024
    - 67.2K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/collect/MapsTest.java

        try {
          map.subMap("a", "z").keySet().add("a");
          fail();
        } catch (UnsupportedOperationException expected) {
        }
        try {
          map.tailMap("a").keySet().add("a");
          fail();
        } catch (UnsupportedOperationException expected) {
        }
        try {
          map.headMap("r").keySet().add("a");
          fail();
        } catch (UnsupportedOperationException expected) {
        }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Mar 04 16:06:01 GMT 2024
    - 64.3K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/Synchronized.java

        @SuppressWarnings("unchecked")
        @Override
        Collection<E> delegate() {
          return (Collection<E>) super.delegate();
        }
    
        @Override
        public boolean add(E e) {
          synchronized (mutex) {
            return delegate().add(e);
          }
        }
    
        @Override
        public boolean addAll(Collection<? extends E> c) {
          synchronized (mutex) {
            return delegate().addAll(c);
          }
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 53.4K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/util/concurrent/AbstractFuture.java

                continue restart;
              }
            } else if (!ATOMIC_HELPER.casWaiters(this, curr, succ)) { // We are unlinking head
              continue restart; // We raced with an add or complete
            }
            curr = succ;
          }
          break;
        }
      }
    
      /** Listeners also form a stack through the {@link #listeners} field. */
      private static final class Listener {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 22 21:17:24 GMT 2024
    - 63K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/cache/CacheLoadingTest.java

                Map<Object, Object> result = Maps.newHashMap();
                for (Object key : keys) {
                  Object value = new Object();
                  result.put(key, value);
                  // add extra entries
                  result.put(value, key);
                }
                return result;
              }
            };
        LoadingCache<Object, Object> cache = CacheBuilder.newBuilder().build(loader);
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 86.2K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/Sets.java

       * is what most users want and expect it to do.
       *
       * <p>This behavior can't be broadly guaranteed, but has been tested with OpenJDK 1.7 and 1.8.
       *
       * @param expectedSize the number of elements you expect to add to the returned set
       * @return a new, empty hash set with enough capacity to hold {@code expectedSize} elements
       *     without resizing
       * @throws IllegalArgumentException if {@code expectedSize} is negative
       */
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 77.4K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/util/concurrent/AbstractClosingFutureTest.java

          StandardSubjectBuilder.forCustomFailureStrategy(
              new FailureStrategy() {
                @Override
                public void fail(AssertionError failure) {
                  failures.add(failure);
                }
              });
    
      final ListeningExecutorService executor =
          MoreExecutors.listeningDecorator(newSingleThreadExecutor());
      final ExecutorService closingExecutor = newSingleThreadExecutor();
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 17:15:24 GMT 2024
    - 75.3K bytes
    - Viewed (0)
Back to top