Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 18 of 18 for unchecked (0.2 sec)

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

      /**
       * Returns the empty bimap.
       *
       * <p><b>Performance note:</b> the instance returned is a singleton.
       */
      // Casting to any type is safe because the set will never hold any elements.
      @SuppressWarnings("unchecked")
      public static <K, V> ImmutableBiMap<K, V> of() {
        return (ImmutableBiMap<K, V>) RegularImmutableBiMap.EMPTY;
      }
    
      /** Returns an immutable bimap containing a single entry. */
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 22.4K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/Multimaps.java

          throw new UnsupportedOperationException();
        }
    
        @SuppressWarnings("unchecked")
        @Override
        public boolean remove(@CheckForNull Object key, @CheckForNull Object value) {
          return get((K) key).remove(value);
        }
    
        @SuppressWarnings("unchecked")
        @Override
        public Collection<V2> removeAll(@CheckForNull Object key) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 86.4K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/ImmutableList.java

       * code.
       *
       * <p><b>Performance note:</b> the instance returned is a singleton.
       */
      // Casting to any type is safe because the list will never hold any elements.
      @SuppressWarnings("unchecked")
      public static <E> ImmutableList<E> of() {
        return (ImmutableList<E>) EMPTY;
      }
    
      /**
       * Returns an immutable list containing a single element. This list behaves and performs
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 27.1K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/ImmutableListMultimap.java

      /**
       * Returns the empty multimap.
       *
       * <p><b>Performance note:</b> the instance returned is a singleton.
       */
      // Casting is safe because the multimap will never hold any elements.
      @SuppressWarnings("unchecked")
      public static <K, V> ImmutableListMultimap<K, V> of() {
        return (ImmutableListMultimap<K, V>) EmptyImmutableListMultimap.INSTANCE;
      }
    
      /** Returns an immutable multimap containing a single entry. */
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 17.6K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/Maps.java

          public Object apply(Entry<?, ?> entry) {
            return entry.getValue();
          }
        };
      }
    
      @SuppressWarnings("unchecked")
      static <K extends @Nullable Object> Function<Entry<K, ?>, K> keyFunction() {
        return (Function) EntryFunction.KEY;
      }
    
      @SuppressWarnings("unchecked")
      static <V extends @Nullable Object> Function<Entry<?, V>, V> valueFunction() {
        return (Function) EntryFunction.VALUE;
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 159.6K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/ImmutableMultiset.java

      }
    
      /**
       * Returns the empty immutable multiset.
       *
       * <p><b>Performance note:</b> the instance returned is a singleton.
       */
      @SuppressWarnings("unchecked") // all supported methods are covariant
      public static <E> ImmutableMultiset<E> of() {
        return (ImmutableMultiset<E>) RegularImmutableMultiset.EMPTY;
      }
    
      /**
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 22.6K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/Sets.java

          @Override
          public <S extends Set<E>> S copyInto(S set) {
            set.addAll(set1);
            set.addAll(set2);
            return set;
          }
    
          @Override
          @SuppressWarnings({"nullness", "unchecked"}) // see supertype
          public ImmutableSet<@NonNull E> immutableCopy() {
            ImmutableSet.Builder<@NonNull E> builder =
                new ImmutableSet.Builder<@NonNull E>()
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 77.4K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/ImmutableSortedMultiset.java

      }
    
      /**
       * Returns the empty immutable sorted multiset.
       *
       * <p><b>Performance note:</b> the instance returned is a singleton.
       */
      @SuppressWarnings("unchecked")
      public static <E> ImmutableSortedMultiset<E> of() {
        return (ImmutableSortedMultiset) RegularImmutableSortedMultiset.NATURAL_EMPTY_MULTISET;
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 35.7K bytes
    - Viewed (0)
Back to top