public class DocOptional { /** * [Using and avoiding null] * null can be ambiguous, can cause confusing errors, and is sometimes just plain unpleasant. Many Guava utilities reject and fail fast on nulls, rather than accepting them blindly. */ public static void main(String[] args) { optionalOf(); optionalOfNullable(); optionalEmpty(); optionalIsPresent(); optionalGet(); optionalOrElse(); optiona..