Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 62 for copyBuf (0.16 sec)

  1. android/guava-testlib/src/com/google/common/collect/testing/google/ListGenerators.java

      private ListGenerators() {}
    
      public static class ImmutableListOfGenerator extends TestStringListGenerator {
        @Override
        protected List<String> create(String[] elements) {
          return ImmutableList.copyOf(elements);
        }
      }
    
      public static class BuilderAddListGenerator extends TestStringListGenerator {
        @Override
        protected List<String> create(String[] elements) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 5K bytes
    - Viewed (0)
  2. android/guava-testlib/src/com/google/common/collect/testing/google/SetGenerators.java

          return ImmutableSortedSet.copyOf(elements);
        }
      }
    
      public static class ImmutableSortedSetHeadsetGenerator extends TestStringSortedSetGenerator {
        @Override
        protected SortedSet<String> create(String[] elements) {
          List<String> list = Lists.newArrayList(elements);
          list.add("zzz");
          return ImmutableSortedSet.copyOf(list).headSet("zzy");
        }
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 15.6K bytes
    - Viewed (0)
  3. guava-tests/benchmark/com/google/common/collect/SortedCopyBenchmark.java

        Random random = new Random();
        while (set.size() < size) {
          set.add(random.nextInt());
        }
        List<Integer> list = new ArrayList<>(set);
        inputOrder.arrange(list);
        input = ImmutableList.copyOf(list);
      }
    
      @Benchmark
      int collections(int reps) {
        int dummy = 0;
        // Yes, this could be done more elegantly
        if (mutable) {
          for (int i = 0; i < reps; i++) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/collect/ImmutableMultisetTest.java

        String[] array = new String[0];
        Multiset<String> multiset = ImmutableMultiset.copyOf(array);
        assertTrue(multiset.isEmpty());
      }
    
      public void testCreation_arrayOfOneElement() {
        String[] array = new String[] {"a"};
        Multiset<String> multiset = ImmutableMultiset.copyOf(array);
        assertEquals(HashMultiset.create(asList("a")), multiset);
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 20.8K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/collect/ImmutableListTest.java

        assertEquals(asList("a", "b", "a"), list);
        List<String> mutableList = asList("a", "b");
        list = ImmutableList.copyOf(mutableList);
        mutableList.set(0, "c");
        assertEquals(asList("a", "b"), list);
      }
    
      public void testCopyOf_collectionContainingNull() {
        Collection<@Nullable String> c = MinimalCollection.of("a", null, "b");
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 24.1K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/collect/ImmutableSetTest.java

      @Override
      protected <E extends Comparable<? super E>> Set<E> copyOf(E[] elements) {
        return ImmutableSet.copyOf(elements);
      }
    
      @Override
      protected <E extends Comparable<? super E>> Set<E> copyOf(Collection<? extends E> elements) {
        return ImmutableSet.copyOf(elements);
      }
    
      @Override
      protected <E extends Comparable<? super E>> Set<E> copyOf(Iterable<? extends E> elements) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 13.7K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/RegularImmutableTable.java

        ImmutableList<Cell<R, C, V>> cellList = ImmutableList.copyOf(cells);
        for (Cell<R, C, V> cell : cells) {
          rowSpaceBuilder.add(cell.getRowKey());
          columnSpaceBuilder.add(cell.getColumnKey());
        }
    
        ImmutableSet<R> rowSpace =
            (rowComparator == null)
                ? ImmutableSet.copyOf(rowSpaceBuilder)
                : ImmutableSet.copyOf(ImmutableList.sortedCopyOf(rowComparator, rowSpaceBuilder));
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 7.1K bytes
    - Viewed (0)
  8. android/guava-tests/benchmark/com/google/common/collect/SortedCopyBenchmark.java

        Random random = new Random();
        while (set.size() < size) {
          set.add(random.nextInt());
        }
        List<Integer> list = new ArrayList<>(set);
        inputOrder.arrange(list);
        input = ImmutableList.copyOf(list);
      }
    
      @Benchmark
      int collections(int reps) {
        int dummy = 0;
        // Yes, this could be done more elegantly
        if (mutable) {
          for (int i = 0; i < reps; i++) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/collect/ImmutableListMultimapTest.java

        ImmutableListMultimap<String, Integer> multimap = ImmutableListMultimap.copyOf(input);
        new EqualsTester().addEqualityGroup(input, multimap).testEquals();
      }
    
      public void testCopyOfEmpty() {
        ArrayListMultimap<String, Integer> input = ArrayListMultimap.create();
        ImmutableListMultimap<String, Integer> multimap = ImmutableListMultimap.copyOf(input);
        new EqualsTester().addEqualityGroup(input, multimap).testEquals();
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 23.8K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/collect/ImmutableMultisetTest.java

        String[] array = new String[0];
        Multiset<String> multiset = ImmutableMultiset.copyOf(array);
        assertTrue(multiset.isEmpty());
      }
    
      public void testCreation_arrayOfOneElement() {
        String[] array = new String[] {"a"};
        Multiset<String> multiset = ImmutableMultiset.copyOf(array);
        assertEquals(HashMultiset.create(asList("a")), multiset);
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 24.9K bytes
    - Viewed (0)
Back to top