Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 411 - 420 of 420 for copyTo0 (0.06 seconds)

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

            @SuppressWarnings("unchecked") // c only contains E's and doesn't escape
            E[] array = (E[]) collection.toArray();
            sort(array, this);
            if (array.length > k) {
              array = Arrays.copyOf(array, k);
            }
            return unmodifiableList(asList(array));
          }
        }
        return leastOf(iterable.iterator(), k);
      }
    
      /**
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Feb 23 19:19:10 GMT 2026
    - 39.4K bytes
    - Click Count (0)
  2. android/guava/src/com/google/common/collect/Ordering.java

            @SuppressWarnings("unchecked") // c only contains E's and doesn't escape
            E[] array = (E[]) collection.toArray();
            sort(array, this);
            if (array.length > k) {
              array = Arrays.copyOf(array, k);
            }
            return unmodifiableList(asList(array));
          }
        }
        return leastOf(iterable.iterator(), k);
      }
    
      /**
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Feb 23 19:19:10 GMT 2026
    - 39.4K bytes
    - Click Count (0)
  3. android/guava/src/com/google/common/net/MediaType.java

        return parameters;
      }
    
      private Map<String, ImmutableMultiset<String>> parametersAsMap() {
        return Maps.transformValues(parameters.asMap(), ImmutableMultiset::copyOf);
      }
    
      /**
       * Returns an optional charset for the value of the charset parameter if it is specified.
       *
       * @throws IllegalStateException if multiple charset values have been set for this media type
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Oct 02 01:46:40 GMT 2025
    - 48K bytes
    - Click Count (0)
  4. android/guava/src/com/google/common/io/MoreFiles.java

       */
      public static ImmutableList<Path> listFiles(Path dir) throws IOException {
        try (DirectoryStream<Path> stream = Files.newDirectoryStream(dir)) {
          return ImmutableList.copyOf(stream);
        } catch (DirectoryIteratorException e) {
          throw e.getCause();
        }
      }
    
      /**
       * Returns a {@link Traverser} instance for the file and directory tree. The returned traverser
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Apr 14 16:07:06 GMT 2025
    - 34.6K bytes
    - Click Count (0)
  5. android/guava/src/com/google/common/collect/Maps.java

      }
    
      /**
       * Creates a <i>mutable</i> {@code HashMap} instance with the same mappings as the specified map.
       *
       * <p><b>Note:</b> if mutability is not required, use {@link ImmutableMap#copyOf(Map)} instead.
       *
       * <p><b>Note:</b> if {@code K} is an {@link Enum} type, use {@link #newEnumMap} instead.
       *
       * <p><b>Note:</b> this method is now unnecessary and should be treated as deprecated. Instead,
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Apr 01 17:27:13 GMT 2026
    - 157.6K bytes
    - Click Count (0)
  6. guava/src/com/google/common/collect/Maps.java

      }
    
      /**
       * Creates a <i>mutable</i> {@code HashMap} instance with the same mappings as the specified map.
       *
       * <p><b>Note:</b> if mutability is not required, use {@link ImmutableMap#copyOf(Map)} instead.
       *
       * <p><b>Note:</b> if {@code K} is an {@link Enum} type, use {@link #newEnumMap} instead.
       *
       * <p><b>Note:</b> this method is now unnecessary and should be treated as deprecated. Instead,
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Apr 01 17:27:13 GMT 2026
    - 163.4K bytes
    - Click Count (0)
  7. android/guava/src/com/google/common/util/concurrent/ClosingFuture.java

        private Combiner(boolean allMustSucceed, Iterable<? extends ClosingFuture<?>> inputs) {
          this.allMustSucceed = allMustSucceed;
          this.inputs = ImmutableList.copyOf(inputs);
          for (ClosingFuture<?> input : inputs) {
            input.becomeSubsumedInto(closeables);
          }
        }
    
        /**
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Apr 01 17:27:13 GMT 2026
    - 101.7K bytes
    - Click Count (0)
  8. android/guava-tests/test/com/google/common/util/concurrent/FuturesTest.java

        assertTrue(future.isCancelled());
    
        CancellationException expected =
            assertThrows(CancellationException.class, () -> CallerClass2.get(future));
        List<StackTraceElement> stackTrace = ImmutableList.copyOf(expected.getStackTrace());
        assertFalse(Iterables.any(stackTrace, hasClassName(CallerClass1.class)));
        assertTrue(Iterables.any(stackTrace, hasClassName(CallerClass2.class)));
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 134K bytes
    - Click Count (0)
  9. guava-tests/test/com/google/common/util/concurrent/FuturesTest.java

        assertTrue(future.isCancelled());
    
        CancellationException expected =
            assertThrows(CancellationException.class, () -> CallerClass2.get(future));
        List<StackTraceElement> stackTrace = ImmutableList.copyOf(expected.getStackTrace());
        assertFalse(Iterables.any(stackTrace, hasClassName(CallerClass1.class)));
        assertTrue(Iterables.any(stackTrace, hasClassName(CallerClass2.class)));
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 134K bytes
    - Click Count (0)
  10. src/main/java/jcifs/smb/SmbFile.java

        }
    
        /**
         *
         */
        void clearAttributeCache() {
            this.attrExpiration = 0;
            this.sizeExpiration = 0;
        }
    
        @Override
        public void copyTo(final SmbResource d) throws SmbException {
            if (!(d instanceof final SmbFile dest)) {
                throw new SmbException("Invalid target resource");
            }
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 30 05:58:03 GMT 2025
    - 103.2K bytes
    - Click Count (0)
Back to Top