Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 3,211 for List (0.03 sec)

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

        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)));
        assertEquals(list, newArrayList(Iterators.limit(list.iterator(), 3)));
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 54.1K bytes
    - Viewed (0)
  2. android/guava-testlib/test/com/google/common/collect/testing/HelpersTest.java

          throw new Error();
        } catch (AssertionFailedError expected) {
        }
      }
    
      public void testAssertContainsAllOf() {
        List<?> list = asList("a", "a", "b", "c");
        assertContainsAllOf(list, "a");
        assertContainsAllOf(list, "a", "a");
        assertContainsAllOf(list, "a", "b", "c");
        assertContainsAllOf(list, "a", "b", "c", "a");
    
        try {
          assertContainsAllOf(list, "d");
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  3. guava-testlib/test/com/google/common/collect/testing/HelpersTest.java

          throw new Error();
        } catch (AssertionFailedError expected) {
        }
      }
    
      public void testAssertContainsAllOf() {
        List<?> list = asList("a", "a", "b", "c");
        assertContainsAllOf(list, "a");
        assertContainsAllOf(list, "a", "a");
        assertContainsAllOf(list, "a", "b", "c");
        assertContainsAllOf(list, "a", "b", "c", "a");
    
        try {
          assertContainsAllOf(list, "d");
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  4. fess-crawler/src/test/java/org/codelibs/fess/crawler/extractor/impl/CommandExtractorTest.java

            list = extractor.parseCommand(cmd, params);
            assertEquals(2, list.size());
            assertEquals("test.sh", list.get(0));
            assertEquals("test1 ' test2", list.get(1));
    
            cmd = "test.sh 'test1 \" test2'";
            params.clear();
            list = extractor.parseCommand(cmd, params);
            assertEquals(2, list.size());
            assertEquals("test.sh", list.get(0));
            assertEquals("test1 \" test2", list.get(1));
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:27 UTC 2024
    - 9.8K bytes
    - Viewed (0)
  5. guava/src/com/google/common/collect/CartesianList.java

      private final transient int[] axesSizeProduct;
    
      static <E> List<List<E>> create(List<? extends List<? extends E>> lists) {
        ImmutableList.Builder<List<E>> axesBuilder = new ImmutableList.Builder<>(lists.size());
        for (List<? extends E> list : lists) {
          List<E> copy = ImmutableList.copyOf(list);
          if (copy.isEmpty()) {
            return ImmutableList.of();
          }
          axesBuilder.add(copy);
        }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Nov 30 21:54:06 UTC 2023
    - 4.8K bytes
    - Viewed (0)
  6. android/guava-tests/benchmark/com/google/common/collect/SortedCopyBenchmark.java

      enum InputOrder {
        SORTED {
          @Override
          void arrange(List<Integer> list) {
            sort(list);
          }
        },
        ALMOST_SORTED {
          @Override
          void arrange(List<Integer> list) {
            sort(list);
            if (list.size() > 1) {
              int i = (list.size() - 1) / 2;
              Collections.swap(list, i, i + 1);
            }
          }
        },
        RANDOM {
          @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  7. .teamcity/src/main/kotlin/model/bucket-extensions.kt

    ): List<R> {
        if (list.isEmpty()) {
            return noElementSplitFunction(expectedBucketNumber)
        }
        if (expectedBucketNumber == 1) {
            return listOf(smallElementAggregateFunction(list))
        }
    
        val expectedBucketSize = list.sumOf(toIntFunction) / expectedBucketNumber
    
        if (expectedBucketSize == 0) {
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Thu Nov 17 05:17:44 UTC 2022
    - 4K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/reflect/TypeTokenTest.java

        assertAssignable(
            new TypeToken<List<? extends N1>>() {}, new TypeToken<List<? extends N1>>() {});
        assertAssignable(new TypeToken<List<? super N1>>() {}, new TypeToken<List<? super N1>>() {});
        assertAssignable(
            new TypeToken<List<? extends Number>>() {}, new TypeToken<List<? extends Number>>() {});
        assertAssignable(
            new TypeToken<List<? super Number>>() {}, new TypeToken<List<? super Number>>() {});
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 21 21:13:09 UTC 2024
    - 89.1K bytes
    - Viewed (0)
  9. fess-crawler/src/test/java/org/codelibs/fess/crawler/transformer/impl/XmlTransformerTest.java

            assertEquals("タイトル", map.get("title"));
            assertEquals("第一章 第一節 ほげほげふがふが LINK 第2章 第2節", map.get("body"));
            final List<String> list = new ArrayList<String>();
            list.add("リスト1");
            list.add("リスト2");
            list.add("リスト3");
            assertEquals(list, map.get("list"));
        }
    
        public void test_getData_dataMap_entity() throws Exception {
            final String value = "<?xml version=\"1.0\"?>\n"//
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:27 UTC 2024
    - 13.5K bytes
    - Viewed (0)
  10. src/test/java/org/codelibs/fess/helper/PluginHelperTest.java

            List<Artifact> list = pluginHelper.processRepository(ArtifactType.CRAWLER, "plugin/repo3/");
            assertEquals(2, list.size());
            assertEquals("fess-crawler-smbj", list.get(0).getName());
            assertEquals("14.14.0", list.get(0).getVersion());
            assertEquals("plugin/repo3/fess-crawler-smbj/14.14.0/fess-crawler-smbj-14.14.0.jar", list.get(0).getUrl());
            assertEquals("fess-crawler-smbj", list.get(1).getName());
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Mon Jun 17 12:38:38 UTC 2024
    - 5.9K bytes
    - Viewed (0)
Back to top