Search Options

Results per page
Sort
Preferred Languages
Advance

Results 161 - 170 of 200 for cast1 (0.04 sec)

  1. 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.7K bytes
    - Viewed (0)
  2. 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
    - 25.9K bytes
    - Viewed (0)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. 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)
  10. 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)
Back to top