Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 2,804 for an (0.14 sec)

  1. guava-testlib/src/com/google/common/collect/testing/MinimalIterable.java

      /** Returns an iterable whose iterator returns the given elements in order. */
      public static <E extends @Nullable Object> MinimalIterable<E> of(E... elements) {
        // Make sure to get an unmodifiable iterator
        return new MinimalIterable<>(Arrays.asList(elements).iterator());
      }
    
      /**
       * Returns an iterable whose iterator returns the given elements in order. The elements are copied
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 3.2K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/cache/AbstractCache.java

         * entry to be loaded, but an exception is thrown while loading the entry. In contrast to {@link
         * #recordMisses}, this method should only be called by the loading thread.
         *
         * @param loadTime the number of nanoseconds the cache spent computing or retrieving the new
         *     value prior to an exception being thrown
         */
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Jun 15 18:00:07 GMT 2021
    - 9.1K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/util/concurrent/UncheckedExecutionException.java

     * possibly run in another thread.
     *
     * <p>{@code UncheckedExecutionException} is intended as an alternative to {@code
     * ExecutionException} when the exception thrown by a task is an unchecked exception. However, it
     * may also wrap a checked exception in some cases.
     *
     * <p>When wrapping an {@code Error} from another thread, prefer {@link ExecutionError}. When
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Mar 07 17:52:19 GMT 2024
    - 4.1K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/io/CharSink.java

    import java.io.Writer;
    import java.nio.charset.Charset;
    
    /**
     * A destination to which characters can be written, such as a text file. Unlike a {@link Writer}, a
     * {@code CharSink} is not an open, stateful stream that can be written to and closed. Instead, it
     * is an immutable <i>supplier</i> of {@code Writer} instances.
     *
     * <p>{@code CharSink} provides two kinds of methods:
     *
     * <ul>
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Feb 28 20:13:02 GMT 2023
    - 6.1K bytes
    - Viewed (0)
  5. guava/src/com/google/common/collect/ImmutableBiMap.java

      /**
       * Returns a {@link Collector} that accumulates elements into an {@code ImmutableBiMap} whose keys
       * and values are the result of applying the provided mapping functions to the input elements.
       * Entries appear in the result {@code ImmutableBiMap} in encounter order.
       *
       * <p>If the mapped keys or values contain duplicates (according to {@link
       * Object#equals(Object)}), an {@code IllegalArgumentException} is thrown when the collection
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Tue Oct 31 16:03:42 GMT 2023
    - 22.6K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/AbstractIterator.java

       * {@code next}. Once the implementation either invokes {@code endOfData} or throws an exception,
       * {@code computeNext} is guaranteed to never be called again.
       *
       * <p>If this method throws an exception, it will propagate outward to the {@code hasNext} or
       * {@code next} invocation that invoked this method. Any further attempts to use the iterator will
       * result in an {@link IllegalStateException}.
       *
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri Mar 18 02:04:10 GMT 2022
    - 6.4K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/Iterators.java

       * should use an explicit {@code break} or be certain that you will eventually remove all the
       * elements.
       */
      @SafeVarargs
      public static <T extends @Nullable Object> Iterator<T> cycle(T... elements) {
        return cycle(Lists.newArrayList(elements));
      }
    
      /**
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Sat Apr 20 03:33:06 GMT 2024
    - 50.6K bytes
    - Viewed (0)
  8. guava-testlib/src/com/google/common/collect/testing/TestSortedMapGenerator.java

        extends TestMapGenerator<K, V> {
      @Override
      SortedMap<K, V> create(Object... elements);
    
      /**
       * Returns an entry with a key less than the keys of the {@link #samples()} and less than the key
       * of {@link #belowSamplesGreater()}.
       */
      Entry<K, V> belowSamplesLesser();
    
      /**
       * Returns an entry with a key less than the keys of the {@link #samples()} but greater than the
       * key of {@link #belowSamplesLesser()}.
       */
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 1.9K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/MapDifference.java

      boolean areEqual();
    
      /**
       * Returns an unmodifiable map containing the entries from the left map whose keys are not present
       * in the right map.
       */
      Map<K, V> entriesOnlyOnLeft();
    
      /**
       * Returns an unmodifiable map containing the entries from the right map whose keys are not
       * present in the left map.
       */
      Map<K, V> entriesOnlyOnRight();
    
      /**
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Aug 04 13:28:27 GMT 2021
    - 3.5K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/FluentIterable.java

       * Returns a fluent iterable containing {@code elements} in the specified order.
       *
       * <p>The returned iterable is an unmodifiable view of the input array.
       *
       * <p><b>{@code Stream} equivalent:</b> {@link java.util.stream.Stream#of(Object[])
       * Stream.of(T...)}.
       *
       * @since 20.0 (since 18.0 as an overload of {@code of})
       */
      public static <E extends @Nullable Object> FluentIterable<E> from(E[] elements) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Jan 30 00:14:39 GMT 2024
    - 35.7K bytes
    - Viewed (0)
Back to top