From 39b619c858052eb87e747f02bf9bef76f3f1e0aa Mon Sep 17 00:00:00 2001 From: David Stocking Date: Sun, 22 Jan 2017 23:17:59 -0500 Subject: [PATCH] Updated README and added a change log --- CHANGELOG.md | 15 +++++++++++++++ README.md | 18 +++++++++++++++--- 2 files changed, 30 insertions(+), 3 deletions(-) create mode 100644 CHANGELOG.md diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..b707939 --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,15 @@ +# Change Log +All notable changes to this project will be documented in this file. + +The format is based on [Keep a Changelog](http://keepachangelog.com/) +and this project adheres to [Semantic Versioning](http://semver.org/). + +## [1.1] - 2017-01-22 +- Optional + - Added ifPresentOrElse + - Added or +- Added OptionalInt +- Added OptionalLong +- Added OptionalDouble + +[1.1]: https://github.com/olivierlacan/keep-a-changelog/compare/1.0...1.1 diff --git a/README.md b/README.md index 6d8972d..8b6f1ad 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ support-optional =============================================== -support-optional provides a Java 8 optional that supports Java 6, Android and +support-optional provides a Java 9 optional that supports Java 6, Android and RetroLambda development while having an easy migration to the real optional class. This library is much in the spirit of ActionBarSherlock that it was only designed to be a removed. @@ -15,7 +15,7 @@ day throw it away.
Other backports have various problems like different class names, slightly different behavior or interface default methods. These make it harder to use and -migrate to the real Java 8 optional class. So here is yet another optional +migrate to the real Java 9 optional class. So here is yet another optional backport, so you don't have to waste your time writing one. Download @@ -31,7 +31,7 @@ repositories { Then add the following to your modules build.gradle file ```gradle dependencies { - compile 'com.github.dmstocking:support-optional:1.0' + compile 'com.github.dmstocking:support-optional:1.1' } ``` @@ -53,6 +53,18 @@ find . -name "*.java" -exec sed -i 's/com\.github\.dmstocking\.optional\.//g' {} or with an IDE so a search and replace without regex of `com.github.dmstocking.optional.` with nothing over your entire src directory. +Unavailable Methods +------------------- + +``` +- Optional::stream() +- OptionalInt::stream() +- OptionalLong::stream() +- OptionalDouble::stream() +``` +Because this library does not backport streams, there is no stream method on any of the Optional +classes. + License -------