- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 1,650 for cast (0.02 sec)
-
guava/src/com/google/common/collect/GeneralRange.java
} boolean isEmpty() { // The casts are safe because of the has*Bound() checks. return (hasUpperBound() && tooLow(uncheckedCastNullableTToT(getUpperEndpoint()))) || (hasLowerBound() && tooHigh(uncheckedCastNullableTToT(getLowerEndpoint()))); } boolean tooLow(@ParametricNullness T t) { if (!hasLowerBound()) { return false; } // The cast is safe because of the hasLowerBound() check.
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Thu Feb 22 21:19:52 UTC 2024 - 10.8K bytes - Viewed (0) -
guava/src/com/google/common/collect/RegularImmutableAsList.java
ImmutableCollection<E> delegateCollection() { return delegate; } ImmutableList<? extends E> delegateList() { return delegateList; } @SuppressWarnings("unchecked") // safe covariant cast! @Override public UnmodifiableListIterator<E> listIterator(int index) { return (UnmodifiableListIterator<E>) delegateList.listIterator(index); } @GwtIncompatible // not present in emulated superclass
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Thu Nov 30 21:54:06 UTC 2023 - 3K bytes - Viewed (0) -
android/guava/src/com/google/common/base/Absent.java
} @Override public T or(T defaultValue) { return checkNotNull(defaultValue, "use Optional.orNull() instead of Optional.or(null)"); } @SuppressWarnings("unchecked") // safe covariant cast @Override public Optional<T> or(Optional<? extends T> secondChoice) { return (Optional<T>) checkNotNull(secondChoice); } @Override public T or(Supplier<? extends T> supplier) {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon May 17 14:07:47 UTC 2021 - 2.5K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/HashBiMap.java
} final class KeySet extends View<K, V, K> { KeySet() { super(HashBiMap.this); } @Override @ParametricNullness K forEntry(int entry) { // The cast is safe because we call forEntry only for indexes that contain entries. return uncheckedCastNullableTToT(keys[entry]); } @Override public boolean contains(@CheckForNull Object o) {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Mar 06 16:06:58 UTC 2023 - 36.4K bytes - Viewed (0) -
guava/src/com/google/common/collect/RegularImmutableBiMap.java
@Nullable ImmutableMapEntry<K, V>[] valueTable = createEntryArray(tableSize); /* * The cast is safe: n==entryArray.length means that we have filled the whole array with Entry * instances, in which case it is safe to cast it from an array of nullable entries to an array * of non-null entries. */ @SuppressWarnings("nullness") Entry<K, V>[] entries =
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 19 00:05:46 UTC 2024 - 11.3K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/RegularImmutableList.java
int internalArrayEnd() { return size; } @Override int copyIntoArray(@Nullable Object[] dst, int dstOff) { arraycopy(array, 0, dst, dstOff, size); return dstOff + size; } // The fake cast to E is safe because the creation methods only allow E's @Override @SuppressWarnings("unchecked") public E get(int index) { checkElementIndex(index, size);
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 2.8K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/RegularImmutableAsList.java
ImmutableCollection<E> delegateCollection() { return delegate; } ImmutableList<? extends E> delegateList() { return delegateList; } @SuppressWarnings("unchecked") // safe covariant cast! @Override public UnmodifiableListIterator<E> listIterator(int index) { return (UnmodifiableListIterator<E>) delegateList.listIterator(index); } @GwtIncompatible // not present in emulated superclass
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Thu Nov 30 21:54:06 UTC 2023 - 3K bytes - Viewed (0) -
guava/src/com/google/common/collect/TreeMultiset.java
return 0; } // The cast is safe because we call this method only if hasLowerBound(). int cmp = comparator() .compare(uncheckedCastNullableTToT(range.getLowerEndpoint()), node.getElement()); if (cmp < 0) { return aggregateBelowRange(aggr, node.left); } else if (cmp == 0) { switch (range.getLowerBoundType()) { case OPEN:
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Oct 18 20:24:49 UTC 2024 - 34.5K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/GeneralRange.java
} boolean isEmpty() { // The casts are safe because of the has*Bound() checks. return (hasUpperBound() && tooLow(uncheckedCastNullableTToT(getUpperEndpoint()))) || (hasLowerBound() && tooHigh(uncheckedCastNullableTToT(getLowerEndpoint()))); } boolean tooLow(@ParametricNullness T t) { if (!hasLowerBound()) { return false; } // The cast is safe because of the hasLowerBound() check.
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Thu Feb 22 21:19:52 UTC 2024 - 10.8K bytes - Viewed (0) -
android/guava/src/com/google/common/graph/MapRetrievalCache.java
@CheckForNull private transient volatile CacheEntry<K, V> cacheEntry2; MapRetrievalCache(Map<K, V> backingMap) { super(backingMap); } @SuppressWarnings("unchecked") // Safe because we only cast if key is found in map. @Override @CheckForNull V get(Object key) { checkNotNull(key); V value = getIfCached(key); if (value != null) { return value; }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Apr 26 17:43:39 UTC 2021 - 3.2K bytes - Viewed (0)