- Sort Score
- Num 10 results
- Language All
Results 611 - 620 of 1,303 for Nullable (0.06 seconds)
-
android/guava/src/com/google/common/graph/ElementOrder.java
import com.google.common.collect.Ordering; import com.google.errorprone.annotations.Immutable; import java.util.Comparator; import java.util.Map; import java.util.Objects; import org.jspecify.annotations.Nullable; /** * Used to represent the order of elements in a data structure that supports different options for * iteration order guarantees. * * <p>Example usage: * * {@snippet :Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Mar 11 01:10:31 GMT 2026 - 6.5K bytes - Click Count (0) -
guava/src/com/google/common/collect/TopKSelector.java
* range [0, k) and ignore the remaining elements. */ private final @Nullable T[] buffer; private int bufferSize; /** * The largest of the lowest k elements we've seen so far relative to this comparator. If * bufferSize ≥ k, then we can ignore any elements greater than this value. */ private @Nullable T threshold;
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sun Aug 31 13:15:26 GMT 2025 - 11.4K bytes - Click Count (0) -
android/guava/src/com/google/common/cache/ReferenceEntry.java
@GwtIncompatible @J2ktIncompatible interface ReferenceEntry<K, V> { /** Returns the value reference from this entry. */ @Nullable ValueReference<K, V> getValueReference(); /** Sets the value reference for this entry. */ void setValueReference(ValueReference<K, V> valueReference); /** Returns the next entry in the chain. */ @Nullable ReferenceEntry<K, V> getNext(); /** Returns the entry's hash. */ int getHash();
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Feb 23 13:13:59 GMT 2026 - 3.5K bytes - Click Count (0) -
guava-testlib/src/com/google/common/testing/ClassSanityTester.java
* Tests that {@code cls} properly checks null on all constructor and method parameters that * aren't annotated nullable (according to the rules of {@link NullPointerTester}). In details: * * <ul> * <li>All non-private static methods are checked such that passing null for any parameter * that's not annotated nullable should throw {@link NullPointerException}.Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sat Aug 09 01:14:59 GMT 2025 - 32.5K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/util/concurrent/CallablesTest.java
Object value = new Object(); Callable<Object> callable = Callables.returning(value); assertThat(callable.call()).isEqualTo(value); // Expect the same value on subsequent calls assertThat(callable.call()).isEqualTo(value); } @J2ktIncompatible @GwtIncompatible public void testAsAsyncCallable() throws Exception { String expected = "MyCallableString"; Callable<String> callable = () -> expected;Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 16 22:45:21 GMT 2026 - 4K bytes - Click Count (0) -
guava-tests/test/com/google/common/util/concurrent/CallablesTest.java
Object value = new Object(); Callable<Object> callable = Callables.returning(value); assertThat(callable.call()).isEqualTo(value); // Expect the same value on subsequent calls assertThat(callable.call()).isEqualTo(value); } @J2ktIncompatible @GwtIncompatible public void testAsAsyncCallable() throws Exception { String expected = "MyCallableString"; Callable<String> callable = () -> expected;Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 16 22:45:21 GMT 2026 - 4K bytes - Click Count (0) -
android/guava/src/com/google/common/collect/CollectPreconditions.java
import com.google.errorprone.annotations.CanIgnoreReturnValue; import org.jspecify.annotations.Nullable; /** Precondition checks useful in collection implementations. */ @GwtCompatible final class CollectPreconditions { static void checkEntryNotNull(@Nullable Object key, @Nullable Object value) { if (key == null) { throw new NullPointerException("null key in entry: null=" + value);Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Nov 10 21:56:42 GMT 2025 - 2.1K bytes - Click Count (0) -
android/guava/src/com/google/common/hash/BloomFilter.java
* @return a {@code BloomFilter} * @since 19.0 */ public static <T extends @Nullable Object> BloomFilter<T> create( Funnel<? super T> funnel, long expectedInsertions, double fpp) { return create(funnel, expectedInsertions, fpp, BloomFilterStrategies.MURMUR128_MITZ_64); } @VisibleForTesting static <T extends @Nullable Object> BloomFilter<T> create(Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Mar 10 22:28:12 GMT 2026 - 27.6K bytes - Click Count (0) -
android/guava-testlib/src/com/google/common/collect/testing/google/TestMultimapGenerator.java
import java.util.Map.Entry; import org.jspecify.annotations.NullMarked; import org.jspecify.annotations.Nullable; /** * Creates multimaps, containing sample elements, to be tested. * * @author Louis Wasserman */ @GwtCompatible @NullMarked public interface TestMultimapGenerator< K extends @Nullable Object, V extends @Nullable Object, M extends Multimap<K, V>> extends TestContainerGenerator<M, Entry<K, V>> {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sun Dec 22 03:38:46 GMT 2024 - 1.5K bytes - Click Count (0) -
guava-testlib/src/com/google/common/collect/testing/google/TestMultimapGenerator.java
import java.util.Map.Entry; import org.jspecify.annotations.NullMarked; import org.jspecify.annotations.Nullable; /** * Creates multimaps, containing sample elements, to be tested. * * @author Louis Wasserman */ @GwtCompatible @NullMarked public interface TestMultimapGenerator< K extends @Nullable Object, V extends @Nullable Object, M extends Multimap<K, V>> extends TestContainerGenerator<M, Entry<K, V>> {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sun Dec 22 03:38:46 GMT 2024 - 1.5K bytes - Click Count (0)