- Sort Score
- Num 10 results
- Language All
Results 1 - 2 of 2 for getSomeOptionalInt (0.07 seconds)
-
guava-tests/test/com/google/common/base/OptionalTest.java
Iterable<Number> onlyPresent = Optional.presentInstances(optionals); assertThat(onlyPresent).containsExactly(2); } private static Optional<Integer> getSomeOptionalInt() { return Optional.of(1); } private static FluentIterable<? extends Number> getSomeNumbers() { return FluentIterable.from(ImmutableList.<Number>of()); } /*
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Tue Oct 28 16:03:47 GMT 2025 - 10.5K bytes - Click Count (0) -
android/guava/src/com/google/common/base/Optional.java
* Java. As a result, some sensible operations involving subtypes are compile errors: * * {@snippet : * Optional<Integer> optionalInt = getSomeOptionalInt(); * Number value = optionalInt.or(0.5); // error * * FluentIterable<? extends Number> numbers = getSomeNumbers(); * Optional<? extends Number> first = numbers.first();Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Wed Jun 04 13:03:16 GMT 2025 - 15.4K bytes - Click Count (0)