Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 27 for some (0.13 sec)

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

      }
    
      public void testNewHashSetFromCollection() {
        HashSet<Integer> set = Sets.newHashSet(SOME_COLLECTION);
        verifySetContents(set, SOME_COLLECTION);
      }
    
      public void testNewHashSetFromIterable() {
        HashSet<Integer> set = Sets.newHashSet(SOME_ITERABLE);
        verifySetContents(set, SOME_ITERABLE);
      }
    
      public void testNewHashSetWithExpectedSizeSmall() {
    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/MapsTest.java

      }
    
      public enum SomeEnum {
        SOME_INSTANCE
      }
    
      public void testEnumMap() {
        EnumMap<SomeEnum, Integer> map = Maps.newEnumMap(SomeEnum.class);
        assertEquals(Collections.emptyMap(), map);
        map.put(SomeEnum.SOME_INSTANCE, 0);
        assertEquals(Collections.singletonMap(SomeEnum.SOME_INSTANCE, 0), map);
      }
    
      public void testEnumMapNullClass() {
        try {
    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)
  3. android/guava-tests/test/com/google/common/collect/MapsTest.java

      }
    
      public enum SomeEnum {
        SOME_INSTANCE
      }
    
      public void testEnumMap() {
        EnumMap<SomeEnum, Integer> map = Maps.newEnumMap(SomeEnum.class);
        assertEquals(Collections.emptyMap(), map);
        map.put(SomeEnum.SOME_INSTANCE, 0);
        assertEquals(Collections.singletonMap(SomeEnum.SOME_INSTANCE, 0), map);
      }
    
      public void testEnumMapNullClass() {
        try {
    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)
  4. android/guava/src/com/google/common/util/concurrent/Futures.java

       * listeners for future n may complete before some for future n-1.) However, it is possible, if
       * one input completes with result X and another later with result Y, for Y to come before X in
       * the output future list. (Such races are impossible to solve without global synchronization of
       * all future completions. And they should have little practical impact.)
       *
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 59.6K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/util/concurrent/AbstractFuture.java

        } catch (SecurityException e) {
          generateCancellationCauses = false;
        }
        GENERATE_CANCELLATION_CAUSES = generateCancellationCauses;
      }
    
      /**
       * Tag interface marking trusted subclasses. This enables some optimizations. The implementation
       * of this interface must also be an AbstractFuture and must not override or expose for overriding
       * any of the public methods of ListenableFuture.
       */
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 22 21:17:24 GMT 2024
    - 63K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/reflect/TypeTokenTest.java

    import java.util.Map;
    import junit.framework.TestCase;
    
    /**
     * Test cases for {@link TypeToken}.
     *
     * @author Sven Mawson
     * @author Ben Yu
     */
    @AndroidIncompatible // lots of failures, possibly some related to bad equals() implementations?
    public class TypeTokenTest extends TestCase {
    
      private abstract static class StringList implements List<String> {}
    
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 17:15:24 GMT 2024
    - 88.7K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/base/CharMatcher.java

        return JavaLetterOrDigit.INSTANCE;
      }
    
      /**
       * Determines whether a BMP character is upper case according to {@linkplain
       * Character#isUpperCase(char) Java's definition}.
       *
       * @deprecated Some uppercase characters are supplementary characters; see the class
       *     documentation.
       * @since 19.0 (since 1.0 as constant {@code JAVA_UPPER_CASE})
       */
      @Deprecated
      public static CharMatcher javaUpperCase() {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 53.7K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/ImmutableSortedMap.java

          Comparator<? super K> comparator) {
        return fromEntries(checkNotNull(comparator), false, entries);
      }
    
      /**
       * Returns an immutable map containing the same entries as the provided sorted map, with the same
       * ordering.
       *
       * <p>Despite the method name, this method attempts to avoid actually copying the data when it is
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 53.2K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/cache/CacheLoadingTest.java

        testConcurrentLoading(CacheBuilder.newBuilder().expireAfterWrite(10, TimeUnit.SECONDS));
      }
    
      /**
       * On a successful concurrent computation, only one thread does the work, but all the threads get
       * the same result.
       */
      private static void testConcurrentLoadingDefault(CacheBuilder<Object, Object> builder)
          throws InterruptedException {
    
        int count = 10;
    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)
  10. guava-tests/test/com/google/common/collect/IteratorsTest.java

        // A few elements.
        a = asList(4, 8, 15, 16, 23, 42);
        b = asList(4, 8, 15, 16, 23, 42);
        assertTrue(Iterators.elementsEqual(a.iterator(), b.iterator()));
    
        // The same, but with nulls.
        a = Arrays.<@Nullable Integer>asList(4, 8, null, 16, 23, 42);
        b = Arrays.<@Nullable Integer>asList(4, 8, null, 16, 23, 42);
        assertTrue(Iterators.elementsEqual(a.iterator(), b.iterator()));
    
    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)
Back to top