Home | History | Annotate | Download | only in base

Lines Matching defs:of

6  * You may obtain a copy of the License at
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
32 * instance of this type either contains a non-null reference, or contains nothing (in
41 * <p>Some uses of this class include
58 * <p>This class is not intended as a direct analogue of any existing "option" or "maybe"
65 * @param <T> the type of instance that can be contained. {@code Optional} is naturally
67 * Optional<S>} for any supertype {@code S} of {@code T}.
84 public static <T> Optional<T> of(T reference) {
117 * {@link #get()} instead. For a default value of {@code null}, use {@link #orNull}.
132 * Optional<T>}. Casting either of the above example {@code Optional} instances to {@code
189 * are absent. Note that {@code Optional} instances of differing parameterized types can
202 * Returns a string representation for this instance. The form of this string
209 * Returns the value of each present instance from the supplied {@code optionals}, in order,
210 * skipping over occurrences of {@link Optional#absent}. Iterators are unmodifiable and are