- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 69 for optional (0.32 sec)
-
guava-tests/test/com/google/common/collect/ComparatorsTest.java
assertTrue(Comparators.isInStrictOrder(Collections.<Integer>emptyList(), Ordering.natural())); } public void testEmptiesFirst() { Optional<String> empty = Optional.empty(); Optional<String> abc = Optional.of("abc"); Optional<String> z = Optional.of("z"); Comparator<Optional<String>> comparator = Comparators.emptiesFirst(comparing(String::length)); Helpers.testComparator(comparator, empty, z, abc);
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Thu Apr 11 08:42:51 GMT 2024 - 6.6K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/testing/FreshValueGenerator.java
} // common.base @Empty <T> com.google.common.base.Optional<T> generateGoogleOptional() { return com.google.common.base.Optional.absent(); } @Generates <T> com.google.common.base.Optional<T> generateGoogleOptional(T value) { return com.google.common.base.Optional.of(value); } @Generates Joiner generateJoiner() {
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Wed Apr 17 16:33:44 GMT 2024 - 28K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/MoreCollectors.java
* @return {@code Optional.of(onlyElement)} if the stream has exactly one element (must not be * {@code null}) and returns {@code Optional.empty()} if it has none. */ @SuppressWarnings("unchecked") public static <T> Collector<T, ?, Optional<T>> toOptional() { return (Collector) TO_OPTIONAL; } private static final Object NULL_PLACEHOLDER = new Object();
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Wed May 01 18:44:57 GMT 2024 - 5.7K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/RangeMap.java
/** Puts all the associations from {@code rangeMap} into this range map (optional operation). */ void putAll(RangeMap<K, ? extends V> rangeMap); /** Removes all associations from this range map (optional operation). */ void clear(); /** * Removes all associations from this range map in the specified range (optional operation). *
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Thu Feb 22 21:19:52 GMT 2024 - 6.5K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/features/CollectionFeature.java
import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.util.Collection; import java.util.LinkedHashSet; import java.util.Set; import java.util.SortedSet; /** * Optional features of classes derived from {@code Collection}. * * @author George van den Driessche */ @SuppressWarnings("rawtypes") // maybe avoidable if we rework the whole package? @GwtCompatible
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Mon Feb 26 19:46:10 GMT 2024 - 4.1K bytes - Viewed (0) -
guava/src/com/google/common/collect/Comparators.java
/** * Returns a comparator of {@link Optional} values which treats {@link Optional#empty} as less * than all other values, and orders the rest using {@code valueComparator} on the contained * value. * * @since 22.0 */ public static <T> Comparator<Optional<T>> emptiesFirst(Comparator<? super T> valueComparator) { checkNotNull(valueComparator); return Comparator.<Optional<T>, @Nullable T>comparing(
Java - Registered: Fri Apr 05 12:43:09 GMT 2024 - Last Modified: Thu Feb 15 16:12:13 GMT 2024 - 10.7K bytes - Viewed (0) -
guava-testlib/src/com/google/common/testing/FreshValueGenerator.java
return pickInstance(Currency.getAvailableCurrencies(), Currency.getInstance(Locale.US)); } @Empty <T> Optional<T> generateJavaOptional() { return Optional.empty(); } @Generates <T> Optional<T> generateJavaOptional(T value) { return Optional.of(value); } @Generates OptionalInt generateOptionalInt() { return OptionalInt.of(generateInt()); }
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Wed Apr 17 16:33:44 GMT 2024 - 28.6K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/CompactLinkedHashMap.java
import org.checkerframework.checker.nullness.qual.Nullable; /** * CompactLinkedHashMap is an implementation of a Map with insertion or LRU iteration order, * maintained with a doubly linked list through the entries. All optional operations (put and * remove) are supported. Null keys and values are supported. * * <p>{@code containsKey(k)}, {@code put(k, v)} and {@code remove(k)} are all (expected and
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Mon Apr 01 16:15:01 GMT 2024 - 8.5K bytes - Viewed (0) -
.github/workflows/scorecard.yml
- name: "Run analysis" uses: ossf/scorecard-action@0864cf19026789058feabb7e87baa5f140aac736 # v2.3.1 with: results_file: results.sarif results_format: sarif # (Optional) "write" PAT token. Uncomment the `repo_token` line below if: # - you want to enable the Branch-Protection check on a *public* repository, or # - you are installing Scorecard on a *private* repository
Others - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Mon Apr 29 23:37:56 GMT 2024 - 2.9K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/features/SetFeature.java
import com.google.common.collect.testing.Helpers; import java.lang.annotation.Inherited; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.util.Set; /** * Optional features of classes derived from {@code Set}. * * @author George van den Driessche */ @SuppressWarnings("rawtypes") // maybe avoidable if we rework the whole package? @GwtCompatible
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Mon Feb 26 19:46:10 GMT 2024 - 1.6K bytes - Viewed (0)