Search Options

Results per page
Sort
Preferred Languages
Advance

Results 271 - 280 of 316 for copyFor (0.04 sec)

  1. guava/src/com/google/common/collect/ImmutableRangeMap.java

        return new ImmutableRangeMap<>(ImmutableList.of(range), ImmutableList.of(value));
      }
    
      @SuppressWarnings("unchecked")
      public static <K extends Comparable<?>, V> ImmutableRangeMap<K, V> copyOf(
          RangeMap<K, ? extends V> rangeMap) {
        if (rangeMap instanceof ImmutableRangeMap) {
          return (ImmutableRangeMap<K, V>) rangeMap;
        }
        Map<Range<K>, ? extends V> map = rangeMap.asMapOfRanges();
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Jul 17 15:26:41 UTC 2025
    - 14.7K bytes
    - Viewed (0)
  2. guava/src/com/google/common/collect/TopKSelector.java

          bufferSize = k;
          threshold = buffer[k - 1];
        }
        // Up to bufferSize, all elements of buffer are real Ts (not null unless T includes null)
        T[] topK = Arrays.copyOf(castBuffer, bufferSize);
        // we have to support null elements, so no ImmutableList for us
        return unmodifiableList(asList(topK));
      }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Aug 31 13:15:26 UTC 2025
    - 11.4K bytes
    - Viewed (0)
  3. src/main/java/jcifs/smb/NtlmContext.java

            final int seq = SMBUtil.readInt4(mic, 12);
            mac.update(mic, 12, 4); // sequence
            final byte[] dgst = mac.digest(data); // data
            byte[] trunc = Arrays.copyOf(dgst, 8);
    
            if (log.isDebugEnabled()) {
                log.debug("Digest " + Hexdump.toHexString(dgst));
                log.debug("Truncated " + Hexdump.toHexString(trunc));
            }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 17.3K bytes
    - Viewed (0)
  4. src/test/java/jcifs/smb/SmbFileIntegrationTest.java

            SmbFile targetFile = new SmbFile(baseUrl + "shared/" + targetFileName, renameContext);
    
            // Copy content to new file
            srcForCopy.copyTo(targetFile);
            srcForCopy.close();
            targetFile.close();
    
            // Wait before delete
            Thread.sleep(500);
            System.gc();
            Thread.sleep(200);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 56K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/cache/PopulatedCachesTest.java

        // would cause one to be evicted.
        return new CacheBuilderFactory()
            .withKeyStrengths(ImmutableSet.of(Strength.STRONG, Strength.WEAK))
            .withValueStrengths(ImmutableSet.copyOf(Strength.values()))
            .withConcurrencyLevels(ImmutableSet.of(1, 4, 16, 64))
            .withMaximumSizes(ImmutableSet.of(400, 1000))
            .withInitialCapacities(ImmutableSet.of(0, 1, 10, 100, 1000))
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 17:27:14 UTC 2025
    - 15.1K bytes
    - Viewed (0)
  6. guava/src/com/google/common/io/ByteStreams.java

          return new byte[0];
        }
        byte[] result = bufs.remove();
        if (result.length == totalLen) {
          return result;
        }
        int remaining = totalLen - result.length;
        result = Arrays.copyOf(result, totalLen);
        while (remaining > 0) {
          byte[] buf = bufs.remove();
          int bytesToCopy = min(remaining, buf.length);
          int resultOffset = totalLen - remaining;
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Jul 17 15:26:41 UTC 2025
    - 31.1K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/TreeRangeMap.java

       * Returns a new {@link TreeRangeMap} containing the same ranges as the given {@code RangeMap}.
       *
       * @since 33.4.0
       */
      @SuppressWarnings("unchecked")
      public static <K extends Comparable<?>, V> TreeRangeMap<K, V> copyOf(
          RangeMap<K, ? extends V> rangeMap) {
        if (rangeMap instanceof TreeRangeMap) {
          NavigableMap<Cut<K>, RangeMapEntry<K, V>> entriesByLowerBound = Maps.newTreeMap();
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Fri Jul 18 15:05:43 UTC 2025
    - 22.8K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/graph/TraverserTest.java

        MutableGraph<Character> graph = GraphBuilder.directed().build();
        graph.addNode('a');
        return ImmutableGraph.copyOf(graph);
      }
    
      private static void assertEqualCharNodes(Iterable<Character> result, String expectedCharacters) {
        assertThat(ImmutableList.copyOf(result))
            .containsExactlyElementsIn(Chars.asList(expectedCharacters.toCharArray()))
            .inOrder();
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 47.5K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/graph/TraverserTest.java

        MutableGraph<Character> graph = GraphBuilder.directed().build();
        graph.addNode('a');
        return ImmutableGraph.copyOf(graph);
      }
    
      private static void assertEqualCharNodes(Iterable<Character> result, String expectedCharacters) {
        assertThat(ImmutableList.copyOf(result))
            .containsExactlyElementsIn(Chars.asList(expectedCharacters.toCharArray()))
            .inOrder();
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 47.5K bytes
    - Viewed (0)
  10. src/test/java/jcifs/internal/smb2/Smb2EncryptionContextTest.java

        }
    
        @Test
        @DisplayName("Should securely wipe encryption keys")
        void testSecureWipeKeys() {
            // Given
            byte[] originalEncKey = Arrays.copyOf(testEncryptionKey, testEncryptionKey.length);
            byte[] originalDecKey = Arrays.copyOf(testDecryptionKey, testDecryptionKey.length);
            Smb2EncryptionContext context = new Smb2EncryptionContext(1, DialectVersion.SMB311, testEncryptionKey, testDecryptionKey);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 44.1K bytes
    - Viewed (0)
Back to top