Search Options

Results per page
Sort
Preferred Languages
Advance

Results 151 - 160 of 370 for Iterables (0.05 sec)

  1. src/main/java/org/codelibs/core/lang/ClassLoaderUtil.java

     * either express or implied. See the License for the specific language
     * governing permissions and limitations under the License.
     */
    package org.codelibs.core.lang;
    
    import static org.codelibs.core.lang.ClassLoaderIterator.iterable;
    import static org.codelibs.core.misc.AssertionUtil.assertArgumentNotEmpty;
    import static org.codelibs.core.misc.AssertionUtil.assertArgumentNotNull;
    
    import java.io.IOException;
    import java.net.URL;
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Thu Jul 31 08:16:49 UTC 2025
    - 7.6K bytes
    - Viewed (0)
  2. guava-testlib/test/com/google/common/collect/testing/MinimalIterableTest.java

      public void testOf_empty() {
        Iterable<String> iterable = MinimalIterable.<String>of();
        Iterator<String> iterator = iterable.iterator();
        assertFalse(iterator.hasNext());
        assertThrows(NoSuchElementException.class, () -> iterator.next());
        assertThrows(IllegalStateException.class, () -> iterable.iterator());
      }
    
      public void testOf_one() {
        Iterable<String> iterable = MinimalIterable.of("a");
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/reflect/TypeTokenSubtypeTest.java

        public Iterable<UseIterable<? extends Iterable<?>>>
            wildcardOfImplicitBoundedIsSubtypeOfWildcardOfExplicitlyBounded(
                List<UseIterable<?>> withImplicitBounds) {
          return isSubtype(withImplicitBounds);
        }
    
        @TestSubtype(suppressGetSupertype = true, suppressGetSubtype = true)
        public Iterable<UseSerializableIterable<? extends Iterable<?>>>
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 18:03:30 UTC 2024
    - 20.4K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/AbstractRangeSet.java

      }
    
      @Override
      public boolean enclosesAll(Iterable<Range<C>> ranges) {
        for (Range<C> range : ranges) {
          if (!encloses(range)) {
            return false;
          }
        }
        return true;
      }
    
      @Override
      public void addAll(RangeSet<C> other) {
        addAll(other.asRanges());
      }
    
      @Override
      public void addAll(Iterable<Range<C>> ranges) {
        for (Range<C> range : ranges) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/core/collection/IndexedIterator.java

        /**
         * Returns an {@link Iterable} that wraps an {@link IndexedIterator} for use in a for-each statement.
         *
         * @param <T> the element type
         * @param iterable the iterable (must not be {@literal null})
         * @return an {@link Iterable} wrapping an {@link IndexedIterator}
         */
        public static <T> Iterable<Indexed<T>> indexed(final Iterable<T> iterable) {
            assertArgumentNotNull("iterable", iterable);
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Thu Jun 19 09:12:22 UTC 2025
    - 3.3K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/collect/ImmutableMultisetTest.java

        assertEquals(1, iterable.count);
      }
    
      public void testCopyOf_hashMultiset() {
        Multiset<String> iterable = HashMultiset.create(asList("a", "b", "a"));
        Multiset<String> multiset = ImmutableMultiset.copyOf(iterable);
        assertEquals(HashMultiset.create(asList("a", "b", "a")), multiset);
      }
    
      public void testCopyOf_treeMultiset() {
        Multiset<String> iterable = TreeMultiset.create(asList("a", "b", "a"));
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 24.8K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/reflect/TypeTokenTest.java

        @SuppressWarnings("rawtypes") // Iterable.class
        TypeToken<? extends Iterable> genericType = TypeToken.toGenericType(Iterable.class);
        assertEquals(Iterable.class, genericType.getRawType());
        assertEquals(
            Types.newParameterizedType(Iterable.class, Iterable.class.getTypeParameters()[0]),
            genericType.getType());
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue Sep 02 17:23:59 UTC 2025
    - 89K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/reflect/AbstractInvocationHandlerTest.java

        return Reflection.newProxy(List.class, new DelegatingInvocationHandlerWithEquals(delegate));
      }
    
      @SuppressWarnings("unchecked") // proxy of Iterable<String>
      private static Iterable<String> newDelegatingIterableWithEquals(Iterable<String> delegate) {
        return Reflection.newProxy(Iterable.class, new DelegatingInvocationHandlerWithEquals(delegate));
      }
    
      @SuppressWarnings("unchecked") // proxy of List<String>
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Dec 28 02:48:50 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  9. guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ImmutableSortedSet.java

      }
    
      // Unsafe, see ImmutableSortedSetFauxverideShim.
      @SuppressWarnings("unchecked")
      public static <E> ImmutableSortedSet<E> copyOf(Iterable<? extends E> elements) {
        return copyOfInternal((Ordering<E>) Ordering.natural(), (Iterable<E>) elements, false);
      }
    
      // Unsafe, see ImmutableSortedSetFauxverideShim.
      @SuppressWarnings("unchecked")
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Aug 06 18:32:41 UTC 2025
    - 15.5K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/collect/EnumMultisetTest.java

      // create(Enum1.class) is equal to create(Enum2.class) but testEquals() expects otherwise.
      // For the same reason, we need to skip create(Iterable, Class).
      private static class EnumMultisetFactory {
        @Keep // used reflectively by testEquals
        public static <E extends Enum<E>> EnumMultiset<E> create(Iterable<E> elements) {
          return EnumMultiset.create(elements);
        }
      }
    
      @J2ktIncompatible
      @GwtIncompatible // reflection
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 6K bytes
    - Viewed (0)
Back to top