Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 437 for copyFor (0.18 sec)

  1. android/guava/src/com/google/common/cache/LocalCache.java

        /**
         * Creates a copy of this reference for the given entry.
         *
         * <p>{@code value} may be null only for a loading reference.
         */
        ValueReference<K, V> copyFor(
            ReferenceQueue<V> queue, @CheckForNull V value, ReferenceEntry<K, V> entry);
    
        /**
         * Notify pending loads that a new value was set. This is only relevant to loading value
         * references.
         */
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 22 17:40:56 GMT 2024
    - 144.7K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/MapMakerInternalMap.java

              return null;
            }
            StrongKeyWeakValueEntry<K, V> newEntry = newEntry(segment, entry.key, entry.hash, newNext);
            newEntry.valueReference = entry.valueReference.copyFor(segment.queueForValues, newEntry);
            return newEntry;
          }
    
          @Override
          public void setValue(
              StrongKeyWeakValueSegment<K, V> segment, StrongKeyWeakValueEntry<K, V> entry, V value) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 91.9K bytes
    - Viewed (0)
  3. guava/src/com/google/common/cache/LocalCache.java

        /**
         * Creates a copy of this reference for the given entry.
         *
         * <p>{@code value} may be null only for a loading reference.
         */
        ValueReference<K, V> copyFor(
            ReferenceQueue<V> queue, @CheckForNull V value, ReferenceEntry<K, V> entry);
    
        /**
         * Notify pending loads that a new value was set. This is only relevant to loading value
         * references.
         */
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 17:40:56 GMT 2024
    - 150.3K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/cache/LocalCacheTest.java

          List<ReferenceEntry<K, V>> writeOrder) {
        if (map.evictsBySize() || map.expiresAfterAccess()) {
          assertSameEntries(readOrder, ImmutableList.copyOf(segment.accessQueue));
        }
        if (map.expiresAfterWrite()) {
          assertSameEntries(writeOrder, ImmutableList.copyOf(segment.writeQueue));
        }
      }
    
      private static <K, V> void assertSameEntries(
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 14 23:06:48 GMT 2024
    - 112.3K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/cache/LocalCacheTest.java

          List<ReferenceEntry<K, V>> writeOrder) {
        if (map.evictsBySize() || map.expiresAfterAccess()) {
          assertSameEntries(readOrder, ImmutableList.copyOf(segment.accessQueue));
        }
        if (map.expiresAfterWrite()) {
          assertSameEntries(writeOrder, ImmutableList.copyOf(segment.writeQueue));
        }
      }
    
      private static <K, V> void assertSameEntries(
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Mar 14 23:06:48 GMT 2024
    - 110.7K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/io/CharSource.java

       *       one with {@link CharSequence#charAt(int)}.
       *   <li>use {@link Appendable#append(CharSequence)} in {@link #copyTo(Appendable)} and {@link
       *       #copyTo(CharSink)}. We know this is correct since strings are immutable and so the length
       *       can't change, and it is faster because many writers and appendables are optimized for
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed May 17 14:35:11 GMT 2023
    - 22.4K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/io/ByteSourceTest.java

        assertFalse(out.closed());
        source.copyTo(out);
        assertFalse(out.closed());
      }
    
      public void testClosesOnErrors_copyingToByteSinkThatThrows() {
        for (TestOption option : EnumSet.of(OPEN_THROWS, WRITE_THROWS, CLOSE_THROWS)) {
          TestByteSource okSource = new TestByteSource(bytes);
          assertThrows(IOException.class, () -> okSource.copyTo(new TestByteSink(option)));
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 16.9K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/io/ByteSourceTest.java

        assertFalse(out.closed());
        source.copyTo(out);
        assertFalse(out.closed());
      }
    
      public void testClosesOnErrors_copyingToByteSinkThatThrows() {
        for (TestOption option : EnumSet.of(OPEN_THROWS, WRITE_THROWS, CLOSE_THROWS)) {
          TestByteSource okSource = new TestByteSource(bytes);
          assertThrows(IOException.class, () -> okSource.copyTo(new TestByteSink(option)));
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 16.9K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/io/ByteSource.java

        return concat(ImmutableList.copyOf(sources));
      }
    
      /**
       * Returns a view of the given byte array as a {@link ByteSource}. To view only a specific range
       * in the array, use {@code ByteSource.wrap(b).slice(offset, length)}.
       *
       * <p>Note that the given byte array may be passed directly to methods on, for example, {@code
       * OutputStream} (when {@code copyTo(OutputStream)} is called on the resulting {@code
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed May 17 14:35:11 GMT 2023
    - 26.2K bytes
    - Viewed (0)
  10. src/main/java/jcifs/smb/SmbCopyUtil.java

                    SmbConstants.FILE_NO_SHARE,
                    attrs,
                    0);
            }
            catch ( SmbAuthException sae ) {
                log.trace("copyTo0", sae);
                int dattrs = dest.getAttributes();
                if ( ( dattrs & SmbConstants.ATTR_READONLY ) != 0 ) {
                    /*
                     * Remove READONLY and try again
                     */
    Java
    - Registered: Sun Apr 28 00:10:09 GMT 2024
    - Last Modified: Tue Jul 07 10:52:42 GMT 2020
    - 17.1K bytes
    - Viewed (0)
Back to top