Search Options

Results per page
Sort
Preferred Languages
Advance

Results 141 - 150 of 180 for qcast (0.05 sec)

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

          for (T element : initialContents) {
            queue.offer(element);
          }
          return queue;
        }
    
        @SuppressWarnings("unchecked") // safe "contravariant cast"
        private <T extends B> Ordering<T> ordering() {
          return Ordering.from((Comparator<T>) comparator);
        }
      }
    
      private final Heap minHeap;
      private final Heap maxHeap;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 34.1K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/ImmutableMultimap.java

       * multimap. Keys and values appear in the same order as in this multimap.
       */
      @Override
      @SuppressWarnings("unchecked") // a widening cast
      public ImmutableMap<K, Collection<V>> asMap() {
        return (ImmutableMap) map;
      }
    
      @Override
      Map<K, Collection<V>> createAsMap() {
        throw new AssertionError("should never be called");
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 27.9K bytes
    - Viewed (0)
  3. guava/src/com/google/common/primitives/Chars.java

        return result;
      }
    
      /**
       * Returns the {@code char} nearest in value to {@code value}.
       *
       * @param value any {@code long} value
       * @return the same value cast to {@code char} if it is in the range of the {@code char} type,
       *     {@link Character#MAX_VALUE} if it is too large, or {@link Character#MIN_VALUE} if it is too
       *     small
       */
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Aug 27 16:47:48 UTC 2024
    - 23.9K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/MinMaxPriorityQueue.java

          for (T element : initialContents) {
            queue.offer(element);
          }
          return queue;
        }
    
        @SuppressWarnings("unchecked") // safe "contravariant cast"
        private <T extends B> Ordering<T> ordering() {
          return Ordering.from((Comparator<T>) comparator);
        }
      }
    
      private final Heap minHeap;
      private final Heap maxHeap;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 34.1K bytes
    - Viewed (0)
  5. android/guava-testlib/src/com/google/common/testing/FreshValueGenerator.java

        if (generated != null) {
          freshness.incrementAndGet();
        }
        return generated;
      }
    
      final <T> @Nullable T generateFresh(Class<T> type) {
        return Primitives.wrap(type).cast(generateFresh(TypeToken.of(type)));
      }
    
      final <T> T newFreshProxy(final Class<T> interfaceType) {
        T proxy = newProxy(interfaceType);
        freshness.incrementAndGet();
        return proxy;
      }
    
      /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 23 14:22:54 UTC 2024
    - 28.1K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/ImmutableSetMultimap.java

       * the provided key, an empty immutable set is returned. The values are in the same order as the
       * parameters used to build this multimap.
       */
      @Override
      public ImmutableSet<V> get(K key) {
        // This cast is safe as its type is known in constructor.
        ImmutableSet<V> set = (ImmutableSet<V>) map.get(key);
        return MoreObjects.firstNonNull(set, emptySet);
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 26.2K bytes
    - Viewed (0)
  7. guava/src/com/google/common/cache/CacheBuilder.java

        if (expireAfterWriteNanos == 0 || expireAfterAccessNanos == 0) {
          return 0;
        }
        return (weigher == null) ? maximumSize : maximumWeight;
      }
    
      // Make a safe contravariant cast now so we don't have to do it over and over.
      @SuppressWarnings("unchecked")
      <K1 extends K, V1 extends V> Weigher<K1, V1> getWeigher() {
        return (Weigher<K1, V1>) MoreObjects.firstNonNull(weigher, OneWeigher.INSTANCE);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:07:49 UTC 2024
    - 51.6K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/primitives/Ints.java

        return result;
      }
    
      /**
       * Returns the {@code int} nearest in value to {@code value}.
       *
       * @param value any {@code long} value
       * @return the same value cast to {@code int} if it is in the range of the {@code int} type,
       *     {@link Integer#MAX_VALUE} if it is too large, or {@link Integer#MIN_VALUE} if it is too
       *     small
       */
      public static int saturatedCast(long value) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 25 18:05:56 UTC 2024
    - 31K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/Streams.java

            this.holder = t;
          }
    
          @Override
          public boolean tryAdvance(Consumer<? super R> action) {
            if (fromSpliterator.tryAdvance(this)) {
              try {
                // The cast is safe because tryAdvance puts a T into `holder`.
                action.accept(function.apply(uncheckedCastNullableTToT(holder), index++));
                return true;
              } finally {
                holder = null;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 31 14:20:11 UTC 2024
    - 37.4K bytes
    - Viewed (0)
  10. guava/src/com/google/common/collect/Ordering.java

       *
       * <p>The returned comparator is serializable.
       *
       * <p><b>Java 8+ users:</b> Use the lambda expression {@code (a, b) -> 0} instead (in certain
       * cases you may need to cast that to {@code Comparator<YourType>}).
       *
       * @since 13.0
       */
      @GwtCompatible(serializable = true)
      public static Ordering<@Nullable Object> allEqual() {
        return AllEqualOrdering.INSTANCE;
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 39.4K bytes
    - Viewed (0)
Back to top