Search Options

Results per page
Sort
Preferred Languages
Advance

Results 111 - 120 of 122 for rawType (1.01 sec)

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

       *
       * <p>The type specification is {@code <E extends Comparable>}, instead of the more specific
       * {@code <E extends Comparable<? super E>>}, to support classes defined without generics.
       */
      @SuppressWarnings("rawtypes") // https://github.com/google/guava/issues/989
      public static <E extends Comparable> TreeMultiset<E> create() {
        return new TreeMultiset<>(Ordering.natural());
      }
    
      /**
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 33.8K bytes
    - Viewed (0)
  2. android/guava-tests/benchmark/com/google/common/base/EnumsBenchmark.java

      float hitRate;
    
      // We could avoid the raw type here by initializing this with a ternary (? SmallEnum.class : ...).
      // However, we end up needing a raw type in getIfPresent, as discussed there.
      @SuppressWarnings("rawtypes")
      private Class<? extends Enum> enumType;
    
      private String[] sampleData;
    
      @BeforeExperiment
      void setUp() throws ClassNotFoundException {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 18:03:30 UTC 2024
    - 29.4K bytes
    - Viewed (0)
  3. android/guava-testlib/src/com/google/common/collect/testing/google/MultimapTestSuiteBuilder.java

          TestMultimapGenerator<K, V, M> generator) {
        return new MultimapTestSuiteBuilder<K, V, M>().usingGenerator(generator);
      }
    
      // Class parameters must be raw.
      @SuppressWarnings("rawtypes") // class literals
      @Override
      protected List<Class<? extends AbstractTester>> getTesters() {
        return ImmutableList.<Class<? extends AbstractTester>>of(
            MultimapAsMapGetTester.class,
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 26.8K bytes
    - Viewed (0)
  4. guava-testlib/test/com/google/common/testing/NullPointerTesterTest.java

      private static class NonGenericClassTypeDefaultValueChecker extends DefaultValueChecker {
    
        @SuppressWarnings("unused") // called by NullPointerTester
        @Keep
        public void checkArray(@SuppressWarnings("rawtypes") Class cls, String s) {
          calledWith(cls, s);
        }
    
        void check() {
          runTester();
          Class<?> defaultClass = (Class<?>) getDefaultParameterValue(0);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Jul 14 14:44:08 UTC 2025
    - 47.7K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/ImmutableMap.java

         * ImmutableMap#builder}.
         */
        public Builder() {
          this(ImmutableCollection.Builder.DEFAULT_INITIAL_CAPACITY);
        }
    
        @SuppressWarnings({"unchecked", "rawtypes"})
        Builder(int initialCapacity) {
          this.alternatingKeysAndValues = new @Nullable Object[2 * initialCapacity];
          this.size = 0;
          this.entriesUsed = false;
        }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 41.2K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/LinkedHashMultimap.java

          this.key = key;
          // Round expected values up to a power of 2 to get the table size.
          int tableSize = Hashing.closedTableSize(expectedValues, VALUE_SET_LOAD_FACTOR);
    
          @SuppressWarnings({"rawtypes", "unchecked"})
          @Nullable ValueEntry<K, V>[] hashTable = new @Nullable ValueEntry[tableSize];
          this.hashTable = hashTable;
        }
    
        private void succeedsInValueSet(
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 19.1K bytes
    - Viewed (0)
  7. guava/src/com/google/common/collect/ImmutableMap.java

         * ImmutableMap#builder}.
         */
        public Builder() {
          this(ImmutableCollection.Builder.DEFAULT_INITIAL_CAPACITY);
        }
    
        @SuppressWarnings({"unchecked", "rawtypes"})
        Builder(int initialCapacity) {
          this.entries = new @Nullable Entry[initialCapacity];
          this.size = 0;
          this.entriesUsed = false;
        }
    
        private void ensureCapacity(int minCapacity) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 44.3K bytes
    - Viewed (0)
  8. android/guava-testlib/src/com/google/common/testing/NullPointerTester.java

          // a file.
          String visiblePackage = Reflection.getPackageName(cls);
          ImmutableList.Builder<Method> builder = ImmutableList.builder();
          for (Class<?> type : TypeToken.of(cls).getTypes().rawTypes()) {
            if (!Reflection.getPackageName(type).equals(visiblePackage)) {
              break;
            }
            for (Method method : type.getDeclaredMethods()) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Jul 14 14:44:08 UTC 2025
    - 24.9K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/ImmutableRangeSet.java

    /**
     * A {@link RangeSet} whose contents will never change, with many other important properties
     * detailed at {@link ImmutableCollection}.
     *
     * @author Louis Wasserman
     * @since 14.0
     */
    @SuppressWarnings("rawtypes") // https://github.com/google/guava/issues/989
    @GwtIncompatible
    public final class ImmutableRangeSet<C extends Comparable> extends AbstractRangeSet<C>
        implements Serializable {
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 27.4K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/Sets.java

       * syntax</a>.
       *
       * @return a new, empty {@code TreeSet}
       */
      @SuppressWarnings({
        "rawtypes", // https://github.com/google/guava/issues/989
        "NonApiType", // acts as a direct substitute for a constructor call
      })
      public static <E extends Comparable> TreeSet<E> newTreeSet() {
        return new TreeSet<>();
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 81.6K bytes
    - Viewed (0)
Back to top