Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for listo (0.14 sec)

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

        assertEquals(list, newArrayList(Iterators.limit(list.iterator(), 1)));
        assertEquals(list, newArrayList(Iterators.limit(list.iterator(), 2)));
    
        list.add("pants");
        assertFalse(Iterators.limit(list.iterator(), 0).hasNext());
        assertEquals(ImmutableList.of("cool"), newArrayList(Iterators.limit(list.iterator(), 1)));
        assertEquals(list, newArrayList(Iterators.limit(list.iterator(), 2)));
    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)
  2. android/guava-tests/test/com/google/common/cache/CacheLoadingTest.java

          while (thread.isAlive() && thread.getState() != Thread.State.WAITING) {
            Thread.yield();
          }
        }
        gettersStartedSignal.countDown();
        gettersComplete.await();
    
        List<Object> resultList = Lists.newArrayListWithExpectedSize(nThreads);
        for (int i = 0; i < nThreads; i++) {
          resultList.add(result.get(i));
        }
        return resultList;
      }
    
    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)
  3. guava-tests/test/com/google/common/collect/SetsTest.java

                list(0, 0, 0),
                list(0, 0, 1),
                list(0, 1, 0),
                list(0, 1, 1),
                list(1, 0, 0),
                list(1, 0, 1),
                list(1, 1, 0),
                list(1, 1, 1))
            .inOrder();
      }
    
      public void testCartesianProduct_contains() {
        Set<List<Integer>> actual = Sets.cartesianProduct(set(1, 2), set(3, 4));
        assertTrue(actual.contains(list(1, 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)
  4. android/guava/src/com/google/common/base/Preconditions.java

      /**
       * Ensures that {@code index} specifies a valid <i>element</i> in an array, list or string of size
       * {@code size}. An element index may range from zero, inclusive, to {@code size}, exclusive.
       *
       * @param index a user-supplied index identifying an element of an array, list or string
       * @param size the size of that array, list or string
       * @return the value of {@code index}
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Apr 11 11:52:14 GMT 2024
    - 52.9K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/cache/CacheLoadingTest.java

          while (thread.isAlive() && thread.getState() != Thread.State.WAITING) {
            Thread.yield();
          }
        }
        gettersStartedSignal.countDown();
        gettersComplete.await();
    
        List<Object> resultList = Lists.newArrayListWithExpectedSize(nThreads);
        for (int i = 0; i < nThreads; i++) {
          resultList.add(result.get(i));
        }
        return resultList;
      }
    
    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)
  6. guava-tests/test/com/google/common/collect/MapsTest.java

      public void testUniqueIndexNullValue() {
        List<@Nullable String> listWithNull = Lists.newArrayList((String) null);
        try {
          Maps.uniqueIndex((List<String>) listWithNull, Functions.constant(1));
          fail();
        } catch (NullPointerException expected) {
        }
      }
    
      /** Null keys aren't allowed either. */
      public void testUniqueIndexNullKey() {
        List<String> oneStringList = Lists.newArrayList("foo");
    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)
  7. android/guava-tests/test/com/google/common/collect/MapsTest.java

      public void testUniqueIndexNullValue() {
        List<@Nullable String> listWithNull = Lists.newArrayList((String) null);
        try {
          Maps.uniqueIndex((List<String>) listWithNull, Functions.constant(1));
          fail();
        } catch (NullPointerException expected) {
        }
      }
    
      /** Null keys aren't allowed either. */
      public void testUniqueIndexNullKey() {
        List<String> oneStringList = Lists.newArrayList("foo");
    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)
  8. android/guava-tests/test/com/google/common/collect/IteratorsTest.java

        assertEquals(list, newArrayList(Iterators.limit(list.iterator(), 1)));
        assertEquals(list, newArrayList(Iterators.limit(list.iterator(), 2)));
    
        list.add("pants");
        assertFalse(Iterators.limit(list.iterator(), 0).hasNext());
        assertEquals(ImmutableList.of("cool"), newArrayList(Iterators.limit(list.iterator(), 1)));
        assertEquals(list, newArrayList(Iterators.limit(list.iterator(), 2)));
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Apr 30 18:43:01 GMT 2024
    - 56.5K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/Multimaps.java

          super(fromMultimap, transformer);
        }
    
        @Override
        List<V2> transform(@ParametricNullness K key, Collection<V1> values) {
          return Lists.transform((List<V1>) values, Maps.asValueToValueFunction(transformer, key));
        }
    
        @Override
        public List<V2> get(@ParametricNullness K key) {
          return transform(key, fromMultimap.get(key));
        }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 86.4K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/util/concurrent/AbstractClosingFutureTest.java

     * limitations under the License.
     */
    
    package com.google.common.util.concurrent;
    
    import static com.google.common.base.Preconditions.checkState;
    import static com.google.common.collect.Lists.asList;
    import static com.google.common.truth.Truth.assertThat;
    import static com.google.common.truth.Truth.assertWithMessage;
    import static com.google.common.util.concurrent.Futures.immediateCancelledFuture;
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 17:15:24 GMT 2024
    - 74.7K bytes
    - Viewed (0)
Back to top