Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 1,066 for collections (0.56 sec)

  1. 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 Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 27K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/collect/AbstractImmutableSetTest.java

      }
    
      public void testCopyOf_collection_empty() {
        Collection<String> c = MinimalCollection.of();
        Set<String> set = copyOf(c);
        assertEquals(Collections.<String>emptySet(), set);
        assertSame(this.<String>of(), set);
      }
    
      public void testCopyOf_collection_oneElement() {
        Collection<String> c = MinimalCollection.of("a");
        Set<String> set = copyOf(c);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 18.4K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/collect/TreeBasedTableTest.java

      public void testRowComparator() {
        sortedTable = TreeBasedTable.create();
        assertSame(Ordering.natural(), sortedTable.rowComparator());
    
        sortedTable = TreeBasedTable.create(Collections.reverseOrder(), Ordering.usingToString());
        assertSame(Collections.reverseOrder(), sortedTable.rowComparator());
      }
    
      public void testColumnComparator() {
        sortedTable = TreeBasedTable.create();
        sortedTable.put("", 42, 'x');
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 15.1K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/fess/entity/QueryContext.java

         */
        public List<String> getDefaultKeyword() {
            if (fieldLogMap != null) {
                return fieldLogMap.getOrDefault(Constants.DEFAULT_FIELD, Collections.emptyList());
            }
            return Collections.emptyList();
        }
    
        /**
         * Adds a query term to the highlighted query set.
         * @param text The query text to highlight.
         */
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 9.4K bytes
    - Viewed (0)
  5. android/guava-tests/benchmark/com/google/common/base/ToStringHelperBenchmark.java

                .addValue(Arrays.asList("C"))
                .addValue(Arrays.asList())
                .add(SHORT_NAME, Collections.singletonMap("k1", "v1"))
                .add(LONG_NAME, Collections.singletonMap("k2", "v2"))
                .addValue(Collections.singletonMap("k3", "v3"))
                .addValue(Collections.emptyMap())
                .addValue(null)
                .add(SHORT_NAME, Optional.of("1"))
                .add(LONG_NAME, Optional.of("1"))
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 18:03:30 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  6. guava-testlib/src/com/google/common/collect/testing/google/SetGenerators.java

    import java.util.ArrayList;
    import java.util.Collections;
    import java.util.Comparator;
    import java.util.LinkedHashSet;
    import java.util.List;
    import java.util.Set;
    import java.util.SortedSet;
    import org.jspecify.annotations.NullMarked;
    
    /**
     * Generators of different types of sets and derived collections from sets.
     *
     * @author Kevin Bourrillion
     * @author Jared Levy
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Aug 10 19:54:19 UTC 2025
    - 15.9K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/math/PairedStatsAccumulatorTest.java

                MANY_VALUES, Collections.nCopies(MANY_VALUES_COUNT, OTHER_ONE_VALUE));
        horizontalValuesAccumulatorByAddAllPartitionedPairedStats =
            createPartitionedFilledPairedStatsAccumulator(
                MANY_VALUES, Collections.nCopies(MANY_VALUES_COUNT, OTHER_ONE_VALUE), 2);
    
        verticalValuesAccumulator =
            createFilledPairedStatsAccumulator(
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 18:03:30 UTC 2024
    - 23.4K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/collect/ImmutableBiMapTest.java

      }
    
      // Creation tests
    
      public void testEmptyBuilder() {
        ImmutableBiMap<String, Integer> map = new Builder<String, Integer>().build();
        assertEquals(Collections.<String, Integer>emptyMap(), map);
        assertEquals(Collections.<Integer, String>emptyMap(), map.inverse());
        assertSame(ImmutableBiMap.of(), map);
      }
    
      public void testSingletonBuilder() {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 21.2K bytes
    - Viewed (0)
  9. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/-UtilJvm.kt

    internal inline fun <T> List<T>.unmodifiable(): List<T> = Collections.unmodifiableList(this)
    
    /** Returns an immutable wrap of this. */
    @Suppress("NOTHING_TO_INLINE")
    internal inline fun <T> Set<T>.unmodifiable(): Set<T> = Collections.unmodifiableSet(this)
    
    /** Returns an immutable wrap of this. */
    @Suppress("NOTHING_TO_INLINE")
    internal inline fun <K, V> Map<K, V>.unmodifiable(): Map<K, V> = Collections.unmodifiableMap(this)
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Thu Jul 31 04:18:40 UTC 2025
    - 10.2K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/graph/GraphMutationTest.java

          assertThat(graph.edges()).isEmpty(); // no edges can remain if there's no nodes
          AbstractGraphTest.validateGraph(graph);
    
          Collections.shuffle(nodeList, gen);
          for (Integer node : nodeList) {
            assertThat(graph.addNode(node)).isTrue();
          }
          Collections.shuffle(edgeList, gen);
          for (EndpointPair<Integer> edge : edgeList) {
            assertThat(graph.putEdge(edge.nodeU(), edge.nodeV())).isTrue();
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 18:03:30 UTC 2024
    - 4.2K bytes
    - Viewed (0)
Back to top