Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 209 for newArrayList (0.23 sec)

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

      public void testMultisetsSpliterator() {
        Multiset<String> multiset = TreeMultiset.create();
        multiset.add("a", 3);
        multiset.add("b", 1);
        multiset.add("c", 2);
    
        List<String> actualValues = Lists.newArrayList();
        multiset.spliterator().forEachRemaining(actualValues::add);
        assertThat(multiset).containsExactly("a", "a", "a", "b", "c", "c").inOrder();
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 31 14:20:11 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/io/CharSourceTest.java

        TestCharSource lines = new TestCharSource(LINES);
        List<String> list =
            lines.readLines(
                new LineProcessor<List<String>>() {
                  List<String> list = Lists.newArrayList();
    
                  @Override
                  public boolean processLine(String line) throws IOException {
                    list.add(line);
                    return true;
                  }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 31 14:20:11 UTC 2024
    - 11.4K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/Collections2.java

          // creating an ArrayList so filtering happens once
          return Lists.newArrayList(iterator()).toArray();
        }
    
        @Override
        @SuppressWarnings("nullness") // b/192354773 in our checker affects toArray declarations
        public <T extends @Nullable Object> T[] toArray(T[] array) {
          return Lists.newArrayList(iterator()).toArray(array);
        }
      }
    
      /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 20:24:49 UTC 2024
    - 22.8K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/fess/es/config/bsentity/dbmeta/CrawlingInfoDbm.java

            return _columnName;
        }
    
        public ColumnInfo columnSessionId() {
            return _columnSessionId;
        }
    
        protected List<ColumnInfo> ccil() {
            List<ColumnInfo> ls = newArrayList();
            ls.add(columnCreatedTime());
            ls.add(columnExpiredTime());
            ls.add(columnName());
            ls.add(columnSessionId());
            return ls;
        }
    
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 8.7K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/fess/es/config/bsentity/dbmeta/LabelTypeDbm.java

            return _columnValue;
        }
    
        public ColumnInfo columnVirtualHost() {
            return _columnVirtualHost;
        }
    
        protected List<ColumnInfo> ccil() {
            List<ColumnInfo> ls = newArrayList();
            ls.add(columnCreatedBy());
            ls.add(columnCreatedTime());
            ls.add(columnExcludedPaths());
            ls.add(columnIncludedPaths());
            ls.add(columnName());
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 12.2K bytes
    - Viewed (0)
  6. android/guava-testlib/src/com/google/common/testing/ForwardingWrapperTester.java

      }
    
      private static @Nullable Object[] getParameterValues(Method method) {
        FreshValueGenerator paramValues = new FreshValueGenerator();
        List<@Nullable Object> passedArgs = Lists.newArrayList();
        for (Class<?> paramType : method.getParameterTypes()) {
          passedArgs.add(paramValues.generateFresh(paramType));
        }
        return passedArgs.toArray();
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 13:00:28 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/collect/CollectionBenchmarkSampleData.java

          int extras = numGoodQueries % size;
    
          for (int i = 0; i < minCopiesOfEachGoodQuery; i++) {
            queryList.addAll(elementsInSet);
          }
          List<Element> tmp = Lists.newArrayList(elementsInSet);
          shuffle(tmp, random);
          queryList.addAll(tmp.subList(0, extras));
        }
    
        // now add bad queries
        while (queryList.size() < numQueries) {
          Element candidate = newElement();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/io/MultiInputStreamTest.java

        byte[] result = ByteSource.concat(checker, checker, checker).read();
        assertEquals(150, result.length);
      }
    
      private void joinHelper(Integer... spans) throws Exception {
        List<ByteSource> sources = Lists.newArrayList();
        int start = 0;
        for (Integer span : spans) {
          sources.add(newByteSource(start, span));
          start += span;
        }
        ByteSource joined = ByteSource.concat(sources);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 4.6K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/fess/es/user/bsentity/dbmeta/RoleDbm.java

        public ColumnInfo columnName() {
            return _columnName;
        }
    
        protected List<ColumnInfo> ccil() {
            List<ColumnInfo> ls = newArrayList();
            ls.add(columnName());
            return ls;
        }
    
        // ===================================================================================
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 7.1K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/collect/CollectionBenchmarkSampleData.java

          int extras = numGoodQueries % size;
    
          for (int i = 0; i < minCopiesOfEachGoodQuery; i++) {
            queryList.addAll(elementsInSet);
          }
          List<Element> tmp = Lists.newArrayList(elementsInSet);
          shuffle(tmp, random);
          queryList.addAll(tmp.subList(0, extras));
        }
    
        // now add bad queries
        while (queryList.size() < numQueries) {
          Element candidate = newElement();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 4.1K bytes
    - Viewed (0)
Back to top