An immutable type that may contain a value or reference.
In Java 8, I want to do something to an Optional object if it is present, and do another thing if …
java functional-programming java-8 optionalI'm using Xcode 6 Beta 4. I have this weird situation where I cannot figure out how to appropriately test for optionals. …
ios swift optionalI've read on many Web sites Optional should be used as a return type only, and not used in method …
java java-8 optionalIn my Android app I'am going to implement my strings with internationalization. I have a problem with the grammar and …
android dynamic parameters string optionalThe Swift Programming Language guide has the following example: class Person { let name: String init(name: String) { self.name = name } …
swift optional forced-unwrappingFrom Apple's documentation: You can use if and let together to work with values that might be missing. These values …
swift optionalI want to replace the following code using java8 Optional: public Obj getObjectFromDB() { Obj obj = dao.find(); if (obj != null) { …
java java-8 optionalI am trying to understand the difference between the Optional<T>.orElse() and Optional<T>.orElseGet() …
java java-8 optionalWhen using the Java 8 Optional class, there are two ways in which a value can be wrapped in an optional. …
java java-8 nullpointerexception null optional