Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 37 for specialized (0.18 sec)

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

       * types. CharBuffer has poor performance when being written into or read out of so round tripping
       * all the bytes through the buffer takes a long time. With these specialized types we can just
       * use a char array.
       *
       * @param from the object to read from
       * @param to the object to write to
       * @return the number of characters copied
    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. guava-tests/test/com/google/common/io/FilesTest.java

        assertTrue(Arrays.equals(I18N.getBytes(Charsets.UTF_8), Files.asByteSource(i18nFile).read()));
      }
    
      /** A {@link File} that provides a specialized value for {@link File#length()}. */
      private static class BadLengthFile extends File {
    
        private final long badLength;
    
        public BadLengthFile(File delegate, long badLength) {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 22.2K bytes
    - Viewed (0)
  3. guava/src/com/google/common/base/Optional.java

     *   <li>{@code java.util.Optional} has the additional methods {@code ifPresent}, {@code filter},
     *       {@code flatMap}, and {@code orElseThrow}.
     *   <li>{@code java.util} offers the primitive-specialized versions {@code OptionalInt}, {@code
     *       OptionalLong} and {@code OptionalDouble}, the use of which is recommended; Guava does not
     *       have these.
     * </ul>
     *
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 14.6K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/io/CharSource.java

          return processor.getResult();
        }
    
        @Override
        public String toString() {
          return "CharSource.wrap(" + Ascii.truncate(seq, 30, "...") + ")";
        }
      }
    
      /**
       * Subclass specialized for string instances.
       *
       * <p>Since Strings are immutable and built into the jdk we can optimize some operations
       *
       * <ul>
    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)
  5. android/guava-tests/test/com/google/common/io/FilesTest.java

        assertTrue(Arrays.equals(I18N.getBytes(Charsets.UTF_8), Files.asByteSource(i18nFile).read()));
      }
    
      /** A {@link File} that provides a specialized value for {@link File#length()}. */
      private static class BadLengthFile extends File {
    
        private final long badLength;
    
        public BadLengthFile(File delegate, long badLength) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 22.2K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/eventbus/EventBus.java

     * href="https://kotlinlang.org/docs/flow.html">Flow</a> and <a
     * href="https://kotlinlang.org/docs/channels.html">Channels</a>. Yet other usages are better served
     * by individual libraries that provide specialized support for particular use cases.
     *
     * <p>Disadvantages of EventBus include:
     *
     * <ul>
     *   <li>It makes the cross-references between producer and subscriber harder to find. This can
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Aug 25 16:37:57 GMT 2021
    - 12.8K bytes
    - Viewed (0)
  7. guava/src/com/google/common/collect/CollectSpliterators.java

       *
       * @param <InElementT> the element type of the input spliterator
       * @param <OutElementT> the (boxed) element type of the output spliterators
       * @param <OutConsumerT> the specialized consumer type for the primitive output type
       * @param <OutSpliteratorT> the primitive spliterator type associated with {@code OutElementT}
       */
      abstract static class FlatMapSpliteratorOfPrimitive<
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Feb 19 15:21:23 GMT 2024
    - 19.8K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/base/Optional.java

     *   <li>{@code java.util.Optional} has the additional methods {@code ifPresent}, {@code filter},
     *       {@code flatMap}, and {@code orElseThrow}.
     *   <li>{@code java.util} offers the primitive-specialized versions {@code OptionalInt}, {@code
     *       OptionalLong} and {@code OptionalDouble}, the use of which is recommended; Guava does not
     *       have these.
     * </ul>
     *
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 13K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/reflect/Invokable.java

              "Invokable is known to return " + getReturnType() + ", not " + returnType);
        }
        @SuppressWarnings("unchecked") // guarded by previous check
        Invokable<T, R1> specialized = (Invokable<T, R1>) this;
        return specialized;
      }
    
      @SuppressWarnings("unchecked") // The declaring class is T's raw class, or one of its supertypes.
      @Override
      public final Class<? super T> getDeclaringClass() {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Dec 14 20:35:03 GMT 2023
    - 18.6K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/base/Suppliers.java

       *
       * <p>The returned supplier is thread-safe. The delegate's {@code get()} method will be invoked at
       * most once unless the underlying {@code get()} throws an exception. The supplier's serialized
       * form does not contain the cached value, which will be recalculated when {@code get()} is called
       * on the deserialized instance.
       *
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 15.3K bytes
    - Viewed (0)
Back to top