Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 1,286 for From (0.17 sec)

  1. android/guava/src/com/google/common/io/CharStreams.java

       * close or flush either object.
       *
       * @param from the object to read from
       * @param to the object to write to
       * @return the number of characters copied
       * @throws IOException if an I/O error occurs
       */
      @CanIgnoreReturnValue
      public static long copy(Readable from, Appendable to) throws IOException {
        // The most common case is that from is a Reader (like InputStreamReader or StringReader) so
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed May 17 14:35:11 GMT 2023
    - 10.9K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/io/Files.java

       * @throws IllegalArgumentException if {@code from.equals(to)}
       */
      public static void move(File from, File to) throws IOException {
        checkNotNull(from);
        checkNotNull(to);
        checkArgument(!from.equals(to), "Source %s and destination %s must be different", from, to);
    
        if (!from.renameTo(to)) {
          copy(from, to);
          if (!from.delete()) {
            if (!to.delete()) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 15 16:12:13 GMT 2024
    - 33.1K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/util/concurrent/AbstractClosingFutureTest.java

            ClosingFuture.whenAllSucceed(
                    ClosingFuture.from(immediateFuture(closeable1)),
                    ClosingFuture.from(immediateFuture(closeable2)),
                    ClosingFuture.from(immediateFuture("value3")),
                    ClosingFuture.from(immediateFuture("value4")),
                    ClosingFuture.from(immediateFuture("value5")))
                .call(
                    waiter.waitFor(
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 22 17:15:24 GMT 2024
    - 74.7K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/util/concurrent/AbstractService.java

      private void enqueueStoppingEvent(final State from) {
        if (from == State.STARTING) {
          listeners.enqueue(STOPPING_FROM_STARTING_EVENT);
        } else if (from == State.RUNNING) {
          listeners.enqueue(STOPPING_FROM_RUNNING_EVENT);
        } else {
          throw new AssertionError();
        }
      }
    
      private void enqueueTerminatedEvent(final State from) {
        switch (from) {
          case NEW:
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri May 12 18:32:03 GMT 2023
    - 20.4K bytes
    - Viewed (0)
  5. src/main/java/jcifs/smb/NtlmPasswordAuthentication.java

        }
    
    
        /**
         * @param to
         * @param from
         */
        protected static void cloneInternal ( NtlmPasswordAuthentication to, NtlmPasswordAuthentication from ) {
            to.context = from.context;
            if ( from.hashesExternal ) {
                to.hashesExternal = true;
                to.ansiHash = from.ansiHash != null ? Arrays.copyOf(from.ansiHash, from.ansiHash.length) : null;
    Java
    - Registered: Sun Apr 28 00:10:09 GMT 2024
    - Last Modified: Tue Jul 07 10:50:16 GMT 2020
    - 8.5K bytes
    - Viewed (0)
  6. guava-testlib/src/com/google/common/collect/testing/NavigableMapTestSuiteBuilder.java

          super(delegate, to, from);
        }
    
        @Override
        NavigableMap<K, V> createSubMap(SortedMap<K, V> sortedMap, K firstExclusive, K lastExclusive) {
          NavigableMap<K, V> map = (NavigableMap<K, V>) sortedMap;
          if (from == Bound.NO_BOUND && to == Bound.INCLUSIVE) {
            return map.headMap(lastInclusive, true);
          } else if (from == Bound.EXCLUSIVE && to == Bound.NO_BOUND) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Feb 26 19:46:10 GMT 2024
    - 7K bytes
    - Viewed (0)
  7. guava-testlib/src/com/google/common/collect/testing/testers/SetEqualsTester.java

                + " even if some elements are null.",
            getSet().equals(MinimalSet.from(elements)));
      }
    
      @CollectionSize.Require(absent = CollectionSize.ZERO)
      public void testEquals_otherContainsNull() {
        Collection<E> elements = getSampleElements(getNumElements() - 1);
        elements.add(null);
        Set<E> other = MinimalSet.from(elements);
    
        assertFalse(
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Jan 09 20:10:38 GMT 2018
    - 3.5K bytes
    - Viewed (0)
  8. guava-testlib/src/com/google/common/testing/NullPointerTester.java

       * "inherited" from superclasses of the same package.
       */
      public void testAllPublicStaticMethods(Class<?> c) {
        testStaticMethods(c, Visibility.PUBLIC);
      }
    
      /**
       * Runs {@link #testMethod} on every instance method of the class of {@code instance} with at
       * least {@code minimalVisibility}, including those inherited from superclasses of the same
       * package.
       */
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Nov 16 15:12:31 GMT 2023
    - 23.3K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/reflect/ClassPath.java

        return FluentIterable.from(resources).filter(ClassInfo.class).toSet();
      }
    
      /**
       * Returns all top level classes loadable from the current class path. Note that "top-level-ness"
       * is determined heuristically by class name (see {@link ClassInfo#isTopLevel}).
       */
      public ImmutableSet<ClassInfo> getTopLevelClasses() {
        return FluentIterable.from(resources)
            .filter(ClassInfo.class)
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Jan 05 17:43:40 GMT 2022
    - 24.9K bytes
    - Viewed (1)
  10. guava-tests/test/com/google/common/cache/CacheBuilderSpecTest.java

        CacheBuilder<Object, Object> builder = CacheBuilder.from(parse("maximumWeight=9000"));
        builder.weigher(constantWeigher(42)).build(CacheLoader.from(Suppliers.ofInstance(null)));
      }
    
      @SuppressWarnings("ReturnValueIgnored")
      public void testMaximumWeight_withoutWeigher() {
        CacheBuilder<Object, Object> builder = CacheBuilder.from(parse("maximumWeight=9000"));
        assertThrows(
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 19.2K bytes
    - Viewed (0)
Back to top