Search Options

Results per page
Sort
Preferred Languages
Advance

Results 181 - 190 of 1,314 for collectionOf (0.12 sec)

  1. guava/src/com/google/common/collect/Synchronized.java

      }
    
      private static <E extends @Nullable Object> Collection<E> typePreservingCollection(
          Collection<E> collection, @CheckForNull Object mutex) {
        if (collection instanceof SortedSet) {
          return sortedSet((SortedSet<E>) collection, mutex);
        }
        if (collection instanceof Set) {
          return set((Set<E>) collection, mutex);
        }
        if (collection instanceof List) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 57.2K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/reflect/MutableTypeToInstanceMap.java

            public Object[] toArray() {
              /*
               * standardToArray returns `@Nullable Object[]` rather than `Object[]` but only because it
               * can be used with collections that may contain null. This collection is a collection of
               * non-null Entry objects (Entry objects that might contain null values but are not
               * themselves null), so we can treat it as a plain `Object[]`.
               */
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Jun 14 17:55:55 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  3. android/guava-testlib/src/com/google/common/collect/testing/DerivedCollectionGenerators.java

          @SuppressWarnings("unchecked")
          K[] keysArray = (K[]) elements;
    
          // Start with a suitably shaped collection of entries
          Collection<Entry<K, V>> originalEntries = mapGenerator.getSampleElements(elements.length);
    
          // Create a copy of that, with the desired value for each key
          Collection<Entry<K, V>> entries = new ArrayList<>(elements.length);
          int i = 0;
          for (Entry<K, V> entry : originalEntries) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 18.2K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/fess/es/log/allcommon/EsAbstractConditionAggregation.java

     * governing permissions and limitations under the License.
     */
    package org.codelibs.fess.es.log.allcommon;
    
    import java.util.ArrayList;
    import java.util.Collection;
    import java.util.Collections;
    import java.util.List;
    
    import org.dbflute.exception.InvalidQueryRegisteredException;
    import org.opensearch.index.query.QueryBuilder;
    import org.opensearch.search.aggregations.AbstractAggregationBuilder;
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 12.4K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/fess/es/user/allcommon/EsAbstractConditionAggregation.java

     * governing permissions and limitations under the License.
     */
    package org.codelibs.fess.es.user.allcommon;
    
    import java.util.ArrayList;
    import java.util.Collection;
    import java.util.Collections;
    import java.util.List;
    
    import org.dbflute.exception.InvalidQueryRegisteredException;
    import org.opensearch.index.query.QueryBuilder;
    import org.opensearch.search.aggregations.AbstractAggregationBuilder;
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 12.4K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/collect/MultisetsCollectionTest.java

    import com.google.common.collect.testing.google.TestStringMultisetGenerator;
    import java.util.ArrayList;
    import java.util.Collections;
    import java.util.List;
    import junit.framework.Test;
    import junit.framework.TestCase;
    import junit.framework.TestSuite;
    
    /**
     * Collection tests on wrappers from {@link Multisets}.
     *
     * @author Jared Levy
     */
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 9.6K bytes
    - Viewed (0)
  7. android/guava-testlib/src/com/google/common/collect/testing/AbstractContainerTester.java

       * words, for the default {@code expectContents()} implementation, the number of occurrences of
       * each given element has increased by one since the test collection was created, and the number
       * of occurrences of all other elements has not changed.
       *
       * <p>Note: This means that a test like the following will fail if {@code collection} is a {@code
       * Set}:
       *
       * <pre>
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 8.8K bytes
    - Viewed (0)
  8. guava-testlib/test/com/google/common/collect/testing/MapTestSuiteBuilderTests.java

                    public boolean containsAll(Collection<?> c) {
                      return map.entrySet().containsAll(c);
                    }
    
                    @Override
                    public boolean removeAll(Collection<?> c) {
                      return map.entrySet().removeAll(c);
                    }
    
                    @Override
                    public boolean retainAll(Collection<?> c) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Apr 19 19:24:36 UTC 2023
    - 11.9K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/collect/ImmutableSortedMultisetTest.java

        Collection<String> c = ImmutableSortedMultiset.of();
        assertSame(c, ImmutableSortedMultiset.copyOf(c));
      }
    
      public void testCopyOf_shortcut_singleton() {
        Collection<String> c = ImmutableSortedMultiset.of("a");
        assertSame(c, ImmutableSortedMultiset.copyOf(c));
      }
    
      public void testCopyOf_shortcut_immutableMultiset() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 22.7K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/collect/ImmutableSetMultimapTest.java

        assertTrue(multimap.get("a") instanceof ImmutableSortedSet);
        assertEquals(
            Collections.reverseOrder(), ((ImmutableSortedSet<Integer>) multimap.get("a")).comparator());
        assertTrue(multimap.get("x") instanceof ImmutableSortedSet);
        assertEquals(
            Collections.reverseOrder(), ((ImmutableSortedSet<Integer>) multimap.get("x")).comparator());
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 26.9K bytes
    - Viewed (0)
Back to top