Search Options

Results per page
Sort
Preferred Languages
Advance

Results 161 - 170 of 298 for copyBuf (0.07 sec)

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

          extends TestStringSortedMapGenerator {
        @Override
        public SortedMap<String, String> create(Entry<String, String>[] entries) {
          return ImmutableSortedMap.copyOf(asList(entries));
        }
      }
    
      public static class ImmutableSortedMapEntryListGenerator
          implements TestListGenerator<Entry<String, Integer>> {
    
        @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/primitives/BooleansTest.java

      private static void testReverse(boolean[] input, boolean[] expectedOutput) {
        input = Arrays.copyOf(input, input.length);
        Booleans.reverse(input);
        assertThat(input).isEqualTo(expectedOutput);
      }
    
      private static void testReverse(
          boolean[] input, int fromIndex, int toIndex, boolean[] expectedOutput) {
        input = Arrays.copyOf(input, input.length);
        Booleans.reverse(input, fromIndex, toIndex);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 02:56:12 UTC 2024
    - 24.8K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/collect/ForwardingListTest.java

                    new TestStringListGenerator() {
    
                      @Override
                      protected List<String> create(String[] elements) {
                        return new StandardImplForwardingList<>(ImmutableList.copyOf(elements));
                      }
                    })
                .named("ForwardingList[ImmutableList] with standard implementations")
                .withFeatures(CollectionSize.ANY, CollectionFeature.ALLOWS_NULL_QUERIES)
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Apr 17 15:49:06 UTC 2023
    - 5.9K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/collect/ForwardingListTest.java

                    new TestStringListGenerator() {
    
                      @Override
                      protected List<String> create(String[] elements) {
                        return new StandardImplForwardingList<>(ImmutableList.copyOf(elements));
                      }
                    })
                .named("ForwardingList[ImmutableList] with standard implementations")
                .withFeatures(CollectionSize.ANY, CollectionFeature.ALLOWS_NULL_QUERIES)
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Apr 17 15:49:06 UTC 2023
    - 5.9K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/collect/TableCollectionTest.java

                      @Override
                      protected Set<String> create(String[] elements) {
                        Table<String, Integer, Character> table =
                            ArrayTable.create(ImmutableList.copyOf(elements), ImmutableList.of(1, 2));
                        populateForRowKeySet(table, elements);
                        return table.rowKeySet();
                      }
                    })
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 35.2K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/CompactHashSet.java

       * the current capacity.
       */
      void resizeEntries(int newCapacity) {
        this.entries = Arrays.copyOf(requireEntries(), newCapacity);
        this.elements = Arrays.copyOf(requireElements(), newCapacity);
      }
    
      @CanIgnoreReturnValue
      private int resizeTable(int oldMask, int newCapacity, int targetHash, int targetEntryIndex) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 20:24:49 UTC 2024
    - 24K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/collect/TableCollectionTest.java

                      @Override
                      protected Set<String> create(String[] elements) {
                        Table<String, Integer, Character> table =
                            ArrayTable.create(ImmutableList.copyOf(elements), ImmutableList.of(1, 2));
                        populateForRowKeySet(table, elements);
                        return table.rowKeySet();
                      }
                    })
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 35.2K bytes
    - Viewed (0)
  8. guava/src/com/google/common/collect/CartesianList.java

        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);
        }
        return new CartesianList<>(axesBuilder.build());
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Nov 30 21:54:06 UTC 2023
    - 4.8K bytes
    - Viewed (0)
  9. guava/src/com/google/common/hash/MessageDigestHashFunction.java

        public HashCode hash() {
          checkNotDone();
          done = true;
          return (bytes == digest.getDigestLength())
              ? HashCode.fromBytesNoCopy(digest.digest())
              : HashCode.fromBytesNoCopy(Arrays.copyOf(digest.digest(), bytes));
        }
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed May 25 20:32:46 UTC 2022
    - 5K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/hash/MessageDigestHashFunctionTest.java

              HashCode.fromBytes(digest.digest(input)), ALGORITHMS.get(algorithmName).hashBytes(input));
          for (int bytes = 4; bytes <= digest.getDigestLength(); bytes++) {
            assertEquals(
                HashCode.fromBytes(Arrays.copyOf(digest.digest(input), bytes)),
                new MessageDigestHashFunction(algorithmName, bytes, algorithmName).hashBytes(input));
          }
          try {
            int maxSize = digest.getDigestLength();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 23 14:22:54 UTC 2024
    - 4.1K bytes
    - Viewed (0)
Back to top