An immutable type that may contain a value or reference.
When I set firstThing to default nil this will work, without the default value of nil I get a error …
swift function optionalI'm trying to make something like this: private String getStringIfObjectIsPresent(Optional<Object> object){ object.ifPresent(() ->{ String …
java lambda optionalWhat's the difference between these two methods: Optional.flatMap() and Optional.map()? An example would be appreciated.
java java-8 optionalHaving been using Java 8 now for 6+ months or so, I'm pretty happy with the new API changes. One area I'm …
java java-8 optionalI love that optionals are in the Java standard library now. But there is one basic problem I keep running …
java nullable optionalI have the following search code in Java: return getTableViewController().getMe().getColumns().stream().filter($->Database.equalsColumnName($.getId(), columnId)).…
java java-8 java-stream optionalI am using this regex: ((?:[a-z][a-z]+))_(\d+)_((?:[a-z][a-z]+)\d+)_(\d{13}) to match strings like this: SH_6208069141055_BC000388_20110412101855 separating …
regex optional regex-groupWhy does this throw a java.lang.NullPointerException? List<String> strings = new ArrayList<>(); strings.add(null); …
java java-8 java-stream optional