Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 69 for subtype (0.14 sec)

  1. guava-tests/test/com/google/common/util/concurrent/AggregateFutureStateFallbackAtomicHelperTest.java

     * Tests our AtomicHelper fallback strategy in AggregateFutureState.
     *
     * <p>On different platforms AggregateFutureState uses different strategies for its core
     * synchronization primitives. The strategies are all implemented as subtypes of AtomicHelper and
     * the strategy is selected in the static initializer of AggregateFutureState. This is convenient
     * and performant but introduces some testing difficulties. This test exercises the two fallback
     * strategies.
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Mon Oct 10 19:45:10 GMT 2022
    - 5.9K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/reflect/TypesTest.java

        ParameterizedType ourType =
            Types.newParameterizedType(HashMap.class, String.class, int[][].class);
    
        new EqualsTester().addEqualityGroup(jvmType, ourType).testEquals();
        assertEquals(jvmType.toString(), ourType.toString());
        assertEquals(jvmType.hashCode(), ourType.hashCode());
        assertEquals(HashMap.class, ourType.getRawType());
        assertThat(ourType.getActualTypeArguments())
            .asList()
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 17:15:24 GMT 2024
    - 14.8K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/package-info.java

     *   <dd>A new type, which is similar to {@link java.util.Map}, but may contain multiple entries
     *       with the same key. Some behaviors of {@link Multimap} are left unspecified and are provided
     *       only by the subtypes mentioned below.
     *   <dt>{@link ListMultimap}
     *   <dd>An extension of {@link Multimap} which permits duplicate entries, supports random access of
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Jul 06 16:29:45 GMT 2023
    - 5K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/TreeMultiset.java

        this.range = GeneralRange.all(comparator);
        this.header = new AvlNode<>();
        successor(header, header);
        this.rootReference = new Reference<>();
      }
    
      /** A function which can be summed across a subtree. */
      private enum Aggregate {
        SIZE {
          @Override
          int nodeAggregate(AvlNode<?> node) {
            return node.elemCount;
          }
    
          @Override
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 34.2K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/base/Ascii.java

       * String#equalsIgnoreCase}). However in almost all cases that ASCII strings are used, the author
       * probably wanted the behavior provided by this method rather than the subtle and sometimes
       * surprising behavior of {@code toUpperCase()} and {@code toLowerCase()}.
       *
       * @since 16.0
       */
      public static boolean equalsIgnoreCase(CharSequence s1, CharSequence s2) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Jul 19 15:43:07 GMT 2021
    - 21.6K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/util/concurrent/Monitor.java

       * includes exceptional exits, so all control paths involving signalling must be protected by a
       * finally block.
       *
       * Further optimizations of this algorithm become increasingly subtle. A wait that terminates
       * without the guard being satisfied (due to timeout, but not interrupt) can then immediately exit
       * the monitor without signalling. If it timed out without being signalled, it does not need to
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Dec 04 18:22:01 GMT 2023
    - 38.6K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/collect/ImmutableRangeSetTest.java

            rangesBuilder.add(Range.downTo(i, boundType));
          }
          for (int j = i + 1; j <= 2; j++) {
            for (BoundType lbType : BoundType.values()) {
              for (BoundType ubType : BoundType.values()) {
                rangesBuilder.add(Range.range(i, lbType, j, ubType));
              }
            }
          }
        }
        ImmutableList<Range<Integer>> ranges = rangesBuilder.build();
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 21.6K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/util/concurrent/AbstractTransformFuture.java

         * it.
         */
        setResult(transformResult);
      }
    
      /** Template method for subtypes to actually run the transform. */
      @ForOverride
      @ParametricNullness
      abstract T doTransform(F function, @ParametricNullness I result) throws Exception;
    
      /** Template method for subtypes to actually set the result. */
      @ForOverride
      abstract void setResult(@ParametricNullness T result);
    
      @Override
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 01 21:46:34 GMT 2024
    - 10.6K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/EvictingQueue.java

         * have the same nullness as E." Since we can't, we declare it to return nullable elements, and
         * we can override it in our non-null-guaranteeing subtypes to present a better signature to
         * their users.
         *
         * However, the checker *we* use has this special knowledge about `Collection.toArray()` anyway,
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri May 12 17:52:55 GMT 2023
    - 4.6K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/ImmutableSortedMultiset.java

       * @throws NullPointerException if any of {@code elements} is null
       */
      public static <E> ImmutableSortedMultiset<E> copyOf(Iterable<? extends E> elements) {
        // Hack around E not being a subtype of Comparable.
        // Unsafe, see ImmutableSortedMultisetFauxverideShim.
        @SuppressWarnings("unchecked")
        Ordering<E> naturalOrder = (Ordering<E>) Ordering.<Comparable<?>>natural();
    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