- Sort Score
- Num 10 results
- Language All
Results 41 - 50 of 1,326 for nullable (0.2 seconds)
-
guava-testlib/src/com/google/common/collect/testing/Helpers.java
import org.jspecify.annotations.NullMarked; import org.jspecify.annotations.Nullable; @GwtCompatible @NullMarked public class Helpers { // Clone of Objects.equals static boolean equal(@Nullable Object a, @Nullable Object b) { return a == b || (a != null && a.equals(b)); } // Clone of Lists.newArrayList public static <E extends @Nullable Object> List<E> copyToList(Iterable<? extends E> elements) {Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 23 21:06:42 GMT 2026 - 17.2K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/base/PredicatesTest.java
public void assertEqualHashCode( Predicate<? super @Nullable Integer> expected, Predicate<? super @Nullable Integer> actual) { assertEquals(actual + " should hash like " + expected, expected.hashCode(), actual.hashCode()); } public void testHashCodeForBooleanOperations() { Predicate<@Nullable Integer> p1 = Predicates.isNull(); Predicate<@Nullable Integer> p2 = isOdd();
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Mar 18 18:06:14 GMT 2026 - 32.2K bytes - Click Count (0) -
guava/src/com/google/common/collect/JdkBackedImmutableBiMap.java
import java.util.Map; import org.jspecify.annotations.Nullable; /** * Implementation of ImmutableBiMap backed by a pair of JDK HashMaps, which have smartness * protecting against hash flooding. */ @GwtIncompatible final class JdkBackedImmutableBiMap<K, V> extends ImmutableBiMap<K, V> { static <K, V> ImmutableBiMap<K, V> create(int n, @Nullable Entry<K, V>[] entryArray) {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Sep 23 17:50:58 GMT 2025 - 4.9K bytes - Click Count (0) -
api/maven-api-core/src/main/java/org/apache/maven/api/services/Prompter.java
* @param defaultReply the default reply value * @return the string entered by the user * @throws PrompterException if an exception occurs */ @Nonnull String prompt(@Nullable String message, @Nullable List<String> possibleValues, @Nullable String defaultReply) throws PrompterException; /** * Prompts the user for a password. * * @param message the message to displayCreated: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Fri Nov 17 15:52:15 GMT 2023 - 3.5K bytes - Click Count (0) -
android/guava/src/com/google/common/collect/ObjectArrays.java
*/ static <T extends @Nullable Object> T[] toArrayImpl( @Nullable Object[] src, int offset, int len, T[] dst) { checkPositionIndexes(offset, offset + len, src.length); if (dst.length < len) { dst = newArray(dst, len); } else if (dst.length > len) { @Nullable Object[] unsoundlyCovariantArray = dst; unsoundlyCovariantArray[len] = null; }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Jan 23 17:16:53 GMT 2026 - 9.2K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/collect/TablesTest.java
Tables.<@Nullable Object, @Nullable Object, @Nullable Object>immutableCell( null, null, null)) .addEqualityGroup( Tables.<String, @Nullable Object, @Nullable Object>immutableCell("bar", null, null)) .addEqualityGroup( Tables.<@Nullable Object, Integer, @Nullable Object>immutableCell(null, 2, null)) .addEqualityGroup(
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Mar 12 17:47:10 GMT 2026 - 3.1K bytes - Click Count (0) -
guava/src/com/google/common/collect/AbstractMultimap.java
import java.util.Spliterator; import java.util.Spliterators; import org.jspecify.annotations.Nullable; /** * A skeleton {@code Multimap} implementation, not necessarily in terms of a {@code Map}. * * @author Louis Wasserman */ @GwtCompatible abstract class AbstractMultimap<K extends @Nullable Object, V extends @Nullable Object> implements Multimap<K, V> { @Override public boolean isEmpty() {Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sat Aug 09 01:14:59 GMT 2025 - 7K bytes - Click Count (0) -
guava/src/com/google/common/cache/RemovalNotification.java
* * @since 19.0 */ public static <K, V> RemovalNotification<K, V> create( @Nullable K key, @Nullable V value, RemovalCause cause) { return new RemovalNotification<>(key, value, cause); } private RemovalNotification(@Nullable K key, @Nullable V value, RemovalCause cause) { super(key, value); this.cause = checkNotNull(cause); }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Feb 13 17:34:21 GMT 2025 - 2.5K bytes - Click Count (0) -
guava/src/com/google/common/collect/MoreCollectors.java
return (Collector) TO_OPTIONAL; } private static final Object NULL_PLACEHOLDER = new Object(); private static final Collector<@Nullable Object, ?, @Nullable Object> ONLY_ELEMENT = Collector.<@Nullable Object, ToOptionalState<Object>, @Nullable Object>of( () -> new ToOptionalState<>(null), (state, o) -> state.add((o == null) ? NULL_PLACEHOLDER : o), ToOptionalState::combine,
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Feb 18 16:22:33 GMT 2026 - 6.1K bytes - Click Count (0) -
android/guava/src/com/google/common/collect/ArrayTable.java
} @Override Map<R, @Nullable V> getValue(int index) { return new Column(index); } @Override Map<R, @Nullable V> setValue(int index, Map<R, @Nullable V> newValue) { throw new UnsupportedOperationException(); } @Override public @Nullable Map<R, @Nullable V> put(C key, Map<R, @Nullable V> value) { throw new UnsupportedOperationException();Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Aug 13 19:39:21 GMT 2025 - 26.2K bytes - Click Count (0)