Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 3 of 3 for unmodifiableIterable (0.13 seconds)

  1. android/guava/src/com/google/common/collect/Iterables.java

      private Iterables() {}
    
      /** Returns an unmodifiable view of {@code iterable}. */
      public static <T extends @Nullable Object> Iterable<T> unmodifiableIterable(
          Iterable<? extends T> iterable) {
        checkNotNull(iterable);
        if (iterable instanceof UnmodifiableIterable || iterable instanceof ImmutableCollection) {
          @SuppressWarnings("unchecked") // Since it's unmodifiable, the covariant cast is safe
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Sep 16 18:35:28 GMT 2025
    - 43.8K bytes
    - Click Count (0)
  2. guava/src/com/google/common/collect/Iterables.java

      private Iterables() {}
    
      /** Returns an unmodifiable view of {@code iterable}. */
      public static <T extends @Nullable Object> Iterable<T> unmodifiableIterable(
          Iterable<? extends T> iterable) {
        checkNotNull(iterable);
        if (iterable instanceof UnmodifiableIterable || iterable instanceof ImmutableCollection) {
          @SuppressWarnings("unchecked") // Since it's unmodifiable, the covariant cast is safe
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sun Mar 08 16:16:42 GMT 2026
    - 43.6K bytes
    - Click Count (0)
  3. guava-tests/test/com/google/common/collect/IterablesTest.java

        Iterable<String> iterable = Iterables.unmodifiableIterable(list);
        Iterable<String> iterable2 = Iterables.unmodifiableIterable(iterable);
        assertThat(iterable2).isSameInstanceAs(iterable);
        ImmutableList<String> immutableList = ImmutableList.of("a", "b", "c");
        assertThat(Iterables.unmodifiableIterable(immutableList)).isSameInstanceAs(immutableList);
        assertThat(Iterables.unmodifiableIterable((List<String>) immutableList))
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Mar 13 13:01:07 GMT 2026
    - 47.5K bytes
    - Click Count (0)
Back to Top