- Sort Score
- Result 10 results
- Languages All
Results 301 - 310 of 555 for unchecked (0.07 sec)
-
guava/src/com/google/common/graph/ElementOrder.java
return Maps.newLinkedHashMapWithExpectedSize(expectedSize); case SORTED: return Maps.newTreeMap(comparator()); } throw new AssertionError(); } @SuppressWarnings("unchecked") <T1 extends T> ElementOrder<T1> cast() { return (ElementOrder<T1>) this; }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 16 17:21:56 UTC 2024 - 6.7K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/cache/LocalCacheTest.java
ReferenceEntry<Object, Object> entry = segment.getEntry(one, hash); ReferenceEntry<Object, Object> newEntry = segment.copyEntry(entry, null); table.set(index, newEntry); @SuppressWarnings("unchecked") LoadingValueReference<Object, Object> valueReference = (LoadingValueReference) newEntry.getValueReference(); assertFalse(valueReference.futureValue.isDone()); startSignal.countDown();
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Oct 18 19:07:49 UTC 2024 - 110.6K bytes - Viewed (0) -
guava-tests/test/com/google/common/cache/LocalCacheTest.java
ReferenceEntry<Object, Object> entry = segment.getEntry(one, hash); ReferenceEntry<Object, Object> newEntry = segment.copyEntry(entry, null); table.set(index, newEntry); @SuppressWarnings("unchecked") LoadingValueReference<Object, Object> valueReference = (LoadingValueReference) newEntry.getValueReference(); assertFalse(valueReference.futureValue.isDone()); startSignal.countDown();
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Oct 18 19:07:49 UTC 2024 - 112.3K bytes - Viewed (0) -
guava-tests/test/com/google/common/base/OptionalTest.java
public void testSampleCodeFine2() { FluentIterable<? extends Number> numbers = getSomeNumbers(); // Sadly, the following is what users will have to do in some circumstances. @SuppressWarnings("unchecked") // safe covariant cast Optional<Number> first = (Optional<Number>) numbers.first(); Number value = first.or(0.5); // fine } @J2ktIncompatible @GwtIncompatible // NullPointerTester
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Sep 17 18:14:12 UTC 2024 - 10.5K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/DenseImmutableTable.java
private final int[] cellColumnIndices; DenseImmutableTable( ImmutableList<Cell<R, C, V>> cellList, ImmutableSet<R> rowSpace, ImmutableSet<C> columnSpace) { @SuppressWarnings("unchecked") @Nullable V[][] array = (@Nullable V[][]) new Object[rowSpace.size()][columnSpace.size()]; this.values = array; this.rowKeyToIndex = Maps.indexMap(rowSpace);
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 19 00:05:46 UTC 2024 - 10.1K bytes - Viewed (0) -
android/guava/src/com/google/common/cache/AbstractCache.java
public ImmutableMap<K, V> getAllPresent(Iterable<? extends Object> keys) { Map<K, V> result = Maps.newLinkedHashMap(); for (Object key : keys) { if (!result.containsKey(key)) { @SuppressWarnings("unchecked") K castKey = (K) key; V value = getIfPresent(key); if (value != null) { result.put(castKey, value); } } } return ImmutableMap.copyOf(result); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Jun 15 18:00:07 UTC 2021 - 9.1K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/Synchronized.java
implements Collection<E> { private SynchronizedCollection(Collection<E> delegate, @CheckForNull Object mutex) { super(delegate, mutex); } @SuppressWarnings("unchecked") @Override Collection<E> delegate() { return (Collection<E>) super.delegate(); } @Override public boolean add(E e) { synchronized (mutex) {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 53.4K bytes - Viewed (0) -
guava/src/com/google/common/collect/Synchronized.java
implements Collection<E> { private SynchronizedCollection(Collection<E> delegate, @CheckForNull Object mutex) { super(delegate, mutex); } @SuppressWarnings("unchecked") @Override Collection<E> delegate() { return (Collection<E>) super.delegate(); } @Override public boolean add(E e) { synchronized (mutex) {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 57.2K bytes - Viewed (0) -
guava/src/com/google/common/collect/RegularImmutableSortedSet.java
} // Pretend the comparator can compare anything. If it turns out it can't // compare two elements, it'll throw a CCE. Only methods that are specified to // throw CCE should call this. @SuppressWarnings("unchecked") Comparator<Object> unsafeComparator() { return (Comparator<Object>) comparator; } RegularImmutableSortedSet<E> getSubSet(int newFromIndex, int newToIndex) {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Apr 01 16:15:01 UTC 2024 - 9.2K bytes - Viewed (0) -
guava/src/com/google/common/collect/ImmutableListMultimap.java
/** * Returns the empty multimap. * * <p><b>Performance note:</b> the instance returned is a singleton. */ // Casting is safe because the multimap will never hold any elements. @SuppressWarnings("unchecked") public static <K, V> ImmutableListMultimap<K, V> of() { return (ImmutableListMultimap<K, V>) EmptyImmutableListMultimap.INSTANCE; } /** Returns an immutable multimap containing a single entry. */
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Aug 16 20:20:32 UTC 2024 - 19K bytes - Viewed (0)