Search Options

Results per page
Sort
Preferred Languages
Advance

Results 251 - 260 of 722 for Iterator (0.06 sec)

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

            if (object == null) {
              throw new NullPointerException();
            }
          }
        }
        return super.containsAll(collection);
      }
    
      @Override
      public Iterator<E> iterator() {
        return asList(contents).iterator();
      }
    
      @Override
      public @Nullable Object[] toArray() {
        @Nullable Object[] result = new @Nullable Object[contents.length];
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  2. guava/src/com/google/common/io/CharSource.java

        }
    
        /**
         * Returns an iterator over the lines in the string. If the string ends in a newline, a final
         * empty string is not included, to match the behavior of BufferedReader/LineReader.readLine().
         */
        private Iterator<String> linesIterator() {
          return new AbstractIterator<String>() {
            Iterator<String> lines = LINE_SPLITTER.split(seq).iterator();
    
            @Override
            @CheckForNull
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 31 14:20:11 UTC 2024
    - 25.5K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/primitives/ImmutableDoubleArrayTest.java

       * half of that is more awkward to arrange...
       */
      private static <T> Iterable<T> iterable(final Collection<T> collection) {
        // return collection::iterator;
        return new Iterable<T>() {
          @Override
          public Iterator<T> iterator() {
            return collection.iterator();
          }
        };
      }
    
      public void testEquals() {
        new EqualsTester()
            .addEqualityGroup(ImmutableDoubleArray.of())
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 25 18:05:56 UTC 2024
    - 21.2K bytes
    - Viewed (0)
  4. compat/maven-compat/src/main/java/org/apache/maven/artifact/versioning/ManagedVersionMap.java

                putAll(map);
            }
        }
    
        public String toString() {
            StringBuilder buffer = new StringBuilder("ManagedVersionMap (" + size() + " entries)\n");
            Iterator<String> iter = keySet().iterator();
            while (iter.hasNext()) {
                String key = iter.next();
                buffer.append(key).append('=').append(get(key));
                if (iter.hasNext()) {
                    buffer.append('\n');
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 1.6K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/base/SplitterTest.java

        StringBuilder builder = new StringBuilder();
        Iterator<String> iterator = splitter.split(builder).iterator();
    
        builder.append("A,");
        assertEquals("A", iterator.next());
        builder.append("B,");
        assertEquals("B", iterator.next());
        builder.append("C");
        assertEquals("C", iterator.next());
        assertFalse(iterator.hasNext());
      }
    
      public void testFixedLengthSimpleSplit() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Sep 17 18:14:12 UTC 2024
    - 29.6K bytes
    - Viewed (0)
  6. android/guava-testlib/src/com/google/common/collect/testing/SafeTreeSet.java

        return delegate.higher(checkValid(e));
      }
    
      @Override
      public boolean isEmpty() {
        return delegate.isEmpty();
      }
    
      @Override
      public Iterator<E> iterator() {
        return delegate.iterator();
      }
    
      @Override
      public E last() {
        return delegate.last();
      }
    
      @Override
      public @Nullable E lower(E e) {
        return delegate.lower(checkValid(e));
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Feb 20 17:00:05 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/CompactHashSet.java

        return indexBeforeRemove - 1;
      }
    
      @Override
      public Iterator<E> iterator() {
        Set<E> delegate = delegateOrNull();
        if (delegate != null) {
          return delegate.iterator();
        }
        return new Iterator<E>() {
          int expectedMetadata = metadata;
          int currentIndex = firstEntryIndex();
          int indexToRemove = -1;
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 20:24:49 UTC 2024
    - 24K bytes
    - Viewed (0)
  8. src/test/java/org/codelibs/core/lang/GenericsUtilTest.java

            final Map<TypeVariable<?>, Type> map = GenericsUtil.getTypeVariableMap(Hoge.class);
            assertThat(map.size(), is(4));
            final Iterator<Entry<TypeVariable<?>, Type>> it = map.entrySet().iterator();
            Entry<TypeVariable<?>, Type> entry = it.next();
            assertThat(entry.getKey().getName(), is("T1"));
            assertThat(entry.getValue(), is(sameClass(Integer.class)));
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 11.5K bytes
    - Viewed (0)
  9. android/guava-testlib/src/com/google/common/collect/testing/testers/MapPutAllTester.java

        assertThrows(
            ConcurrentModificationException.class,
            () -> {
              Iterator<Entry<K, V>> iterator = getMap().entrySet().iterator();
              putAll(MinimalCollection.of(e3(), e0()));
              iterator.next();
            });
      }
    
      @MapFeature.Require(absent = SUPPORTS_PUT)
      @CollectionSize.Require(absent = ZERO)
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  10. guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ForwardingImmutableCollection.java

      final transient Collection<E> delegate;
    
      ForwardingImmutableCollection(Collection<E> delegate) {
        this.delegate = delegate;
      }
    
      @Override
      public UnmodifiableIterator<E> iterator() {
        return Iterators.unmodifiableIterator(delegate.iterator());
      }
    
      @Override
      public boolean contains(@Nullable Object object) {
        return object != null && delegate.contains(object);
      }
    
      @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jan 23 18:43:40 UTC 2024
    - 1.9K bytes
    - Viewed (0)
Back to top