Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 33 of 33 for covariantly (0.06 sec)

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

          Iterable<? extends T> iterable) {
        checkNotNull(iterable);
        if (iterable instanceof UnmodifiableIterable || iterable instanceof ImmutableCollection) {
          @SuppressWarnings("unchecked") // Since it's unmodifiable, the covariant cast is safe
          Iterable<T> result = (Iterable<T>) iterable;
          return result;
        }
        return new UnmodifiableIterable<>(iterable);
      }
    
      /**
       * Simply returns its argument.
       *
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Mon Nov 17 22:50:48 UTC 2025
    - 43.6K bytes
    - Viewed (0)
  2. guava/src/com/google/common/collect/Maps.java

       * @since 14.0
       */
      public static <K extends Enum<K>, V> ImmutableMap<K, V> immutableEnumMap(
          Map<K, ? extends V> map) {
        if (map instanceof ImmutableEnumMap) {
          @SuppressWarnings("unchecked") // safe covariant cast
          ImmutableEnumMap<K, V> result = (ImmutableEnumMap<K, V>) map;
          return result;
        }
        Iterator<? extends Entry<K, ? extends V>> entryItr = map.entrySet().iterator();
        if (!entryItr.hasNext()) {
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Mon Nov 17 22:50:48 UTC 2025
    - 163.5K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/Maps.java

       * @since 14.0
       */
      public static <K extends Enum<K>, V> ImmutableMap<K, V> immutableEnumMap(
          Map<K, ? extends V> map) {
        if (map instanceof ImmutableEnumMap) {
          @SuppressWarnings("unchecked") // safe covariant cast
          ImmutableEnumMap<K, V> result = (ImmutableEnumMap<K, V>) map;
          return result;
        }
        Iterator<? extends Entry<K, ? extends V>> entryItr = map.entrySet().iterator();
        if (!entryItr.hasNext()) {
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Sep 23 17:50:58 UTC 2025
    - 157.6K bytes
    - Viewed (0)
Back to top