Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 4 of 4 for SingletonIterator (0.07 seconds)

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

        }.test();
      }
    
      public void testConcatPartiallyAdvancedSecond() {
        Iterator<String> itr1 = Iterators.concat(singletonIterator("a"), Iterators.forArray("b", "c"));
        assertEquals("a", itr1.next());
        assertEquals("b", itr1.next());
        Iterator<String> itr2 = Iterators.concat(singletonIterator("d"), itr1);
        assertEquals("d", itr2.next());
        assertEquals("c", itr2.next());
      }
    
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue Oct 28 18:44:53 GMT 2025
    - 56.7K bytes
    - Click Count (0)
  2. guava/src/com/google/common/collect/Iterators.java

      public static <T extends @Nullable Object> UnmodifiableIterator<T> singletonIterator(
          @ParametricNullness T value) {
        return new SingletonIterator<>(value);
      }
    
      private static final class SingletonIterator<T extends @Nullable Object>
          extends UnmodifiableIterator<T> {
        private final T value;
        private boolean done;
    
        SingletonIterator(T value) {
          this.value = value;
        }
    
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue Sep 16 12:42:11 GMT 2025
    - 51.4K bytes
    - Click Count (0)
  3. android/guava-tests/test/com/google/common/collect/OrderingTest.java

     * limitations under the License.
     */
    
    package com.google.common.collect;
    
    import static com.google.common.base.Preconditions.checkArgument;
    import static com.google.common.collect.Iterators.singletonIterator;
    import static com.google.common.collect.ReflectionFreeAssertThrows.assertThrows;
    import static com.google.common.collect.testing.Helpers.testComparator;
    import static com.google.common.testing.SerializableTester.reserialize;
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Fri Oct 10 23:13:45 GMT 2025
    - 42.8K bytes
    - Click Count (0)
  4. guava-tests/test/com/google/common/collect/OrderingTest.java

     * limitations under the License.
     */
    
    package com.google.common.collect;
    
    import static com.google.common.base.Preconditions.checkArgument;
    import static com.google.common.collect.Iterators.singletonIterator;
    import static com.google.common.collect.ReflectionFreeAssertThrows.assertThrows;
    import static com.google.common.collect.testing.Helpers.testComparator;
    import static com.google.common.testing.SerializableTester.reserialize;
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Fri Oct 10 23:13:45 GMT 2025
    - 42.8K bytes
    - Click Count (0)
Back to Top