Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for sources (0.19 sec)

  1. guava-tests/test/com/google/common/collect/IteratorsTest.java

        Iterator<Integer> source = Iterators.singletonIterator(1);
        try {
          Iterators.partition(source, 0);
          fail();
        } catch (IllegalArgumentException expected) {
        }
      }
    
      public void testPartition_empty() {
        Iterator<Integer> source = Iterators.emptyIterator();
        Iterator<List<Integer>> partitions = Iterators.partition(source, 1);
        assertFalse(partitions.hasNext());
      }
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 55.7K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/Synchronized.java

        private void writeObject(ObjectOutputStream stream) throws IOException {
          synchronized (mutex) {
            stream.defaultWriteObject();
          }
        }
    
        @GwtIncompatible // not needed in emulated source
        @J2ktIncompatible
        private static final long serialVersionUID = 0;
      }
    
      private static <E extends @Nullable Object> Collection<E> collection(
          Collection<E> collection, @CheckForNull Object mutex) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 53.4K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/collect/IteratorsTest.java

        Iterator<Integer> source = singletonIterator(1);
        try {
          Iterators.partition(source, 0);
          fail();
        } catch (IllegalArgumentException expected) {
        }
      }
    
      public void testPartition_empty() {
        Iterator<Integer> source = Iterators.emptyIterator();
        Iterator<List<Integer>> partitions = Iterators.partition(source, 1);
        assertFalse(partitions.hasNext());
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Apr 30 18:43:01 GMT 2024
    - 56.5K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/Multimaps.java

          setMap(map);
        }
    
        @GwtIncompatible // not needed in emulated source
        @J2ktIncompatible
        private static final long serialVersionUID = 0;
      }
    
      /**
       * Copies each key-value mapping in {@code source} into {@code dest}, with its key and value
       * reversed.
       *
       * <p>If {@code source} is an {@link ImmutableMultimap}, consider using {@link
       * ImmutableMultimap#inverse} instead.
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 86.4K bytes
    - Viewed (0)
  5. guava/src/com/google/common/cache/CacheBuilder.java

      }
    
      /**
       * Specifies a nanosecond-precision time source for this cache. By default, {@link
       * System#nanoTime} is used.
       *
       * <p>The primary intent of this method is to facilitate testing of caches with a fake or mock
       * time source.
       *
       * @return this {@code CacheBuilder} instance (for chaining)
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 15 16:12:13 GMT 2024
    - 51.3K bytes
    - Viewed (0)
  6. guava/src/com/google/common/collect/Iterators.java

          }
        };
      }
    
      /**
       * Combines two iterators into a single iterator. The returned iterator iterates across the
       * elements in {@code a}, followed by the elements in {@code b}. The source iterators are not
       * polled until necessary.
       *
       * <p>The returned iterator supports {@code remove()} when the corresponding input iterator
       * supports it.
       */
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Tue Jan 30 00:14:39 GMT 2024
    - 50.5K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/Iterators.java

          }
        };
      }
    
      /**
       * Combines two iterators into a single iterator. The returned iterator iterates across the
       * elements in {@code a}, followed by the elements in {@code b}. The source iterators are not
       * polled until necessary.
       *
       * <p>The returned iterator supports {@code remove()} when the corresponding input iterator
       * supports it.
       */
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Apr 30 18:43:01 GMT 2024
    - 51.1K bytes
    - Viewed (0)
Back to top