Lines Matching defs:or
2 * Copyright (c) 2012, 2017, Oracle and/or its affiliates. All rights reserved.
5 * This code is free software; you can redistribute it and/or modify it
12 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
22 * or visit www.oracle.com if you need additional information or have any
34 * A container object which may or may not contain a non-{@code null} value.
38 * <p>Additional methods that depend on the presence or absence of a contained
46 * ({@code ==}), identity hash code, or synchronization) on instances of
187 * is {@code null}, or no value is present and the given empty-based
277 * @throws NullPointerException if the mapping function is {@code null} or
300 * @throws NullPointerException if the supplying function is {@code null} or
304 public Optional<T> or(Supplier<? extends Optional<? extends T>> supplier) {
394 * <li>both instances have no value present or;
420 * @return hash code value of the present value or {@code 0} if no value is