Commit graph

40 commits

Author SHA1 Message Date
8357d7f5d8
[tree] Add TreeBuilder (#57)
* [tree] TreeBuilder: whenEmptyBuilderBuildThenTreeIsAnEmptyLeaf()

* [tree] Provide default implementation of count()

* [tree] Extract TreeMapper

* [tree] MutableTree added

* [tree] TreeBuilder: whenAddLeafThenTreeHasLeaf()

* [tree] TreeBuilder: whenAddSubTreeThenTreeHasSubTree()

* [maybe] Add Maybe.findFirst(Stream) and matchValue(Function, Supplier)

* [tree] TreeBuilder: whenAddGrandChildThenTreeHasGrandChild()

* [tree] TreeBuilder: whenAddMultipleChildrenThenTreeHasAllChildren()

* [tree] Tree: avoid leaking MutableTree type as parameters

* [changelog] update

* [changelog][readme] Update to include TreeBuilder
2018-10-14 08:55:09 +01:00
73e59b0050
Bump junit from 4.12 to 5.3.1 (#56)
* Bump junit from 4.12 to 5.3.1

* [changelog] update

* [jenkins] stop publishing to codacy and test build with java 11
2018-10-12 20:42:11 +01:00
dependabot[bot]
f92c9cfa65 Bump kemitix-parent from 5.1.1 to 5.2.0 (#55)
* Bump kemitix-parent from 5.1.1 to 5.2.0

Bumps [kemitix-parent](https://gitlab.com/kemitix/kemitix-parent) from 5.1.1 to 5.2.0.
- [Release notes](https://gitlab.com/kemitix/kemitix-parent/tags)
- [Commits](https://gitlab.com/kemitix/kemitix-parent/commits/master)

Signed-off-by: dependabot[bot] <support@dependabot.com>

* Remove travis config

* [changelog] update
2018-10-10 17:42:19 +01:00
00d8808479 [result] orElseThrow() throws error within a CheckedErrorResultException 2018-10-06 19:58:50 +01:00
e22ff4589f Update CHANGELOG and README 2018-10-04 07:39:38 +01:00
c0ee1cdbc7 [result] orElseThrow() wraps the error exception in an unchecked MonResultException 2018-10-03 21:58:33 +01:00
6fc6cc7a18 [changelog] updated 2018-09-30 19:47:42 +01:00
Paul Campbell
1ca686a3f6 Add Maybe.or(Supplier<Maybe>)
Like a flatMap for the negative case.
2018-08-31 22:53:06 +01:00
0f3707718c Update CHANGELOG 2018-08-25 16:15:58 +01:00
d001a3cb3b Prepare CHANGELOG 2018-07-16 22:33:32 +01:00
888c43d468 Update CHANGELOG 2018-07-16 21:01:25 +01:00
e5958ba432 Add Either (experimental) 2018-07-16 18:49:44 +01:00
9da7f0fca0 Update CHANGELOG 2018-07-15 21:57:35 +01:00
51f86884fb Add Maybe.isJust() and Maybe.isNothing() 2018-07-12 20:28:34 +01:00
c64284872c Rename Result.maybeThen() as Result.flatMapMaybe() 2018-07-10 22:46:22 +01:00
3c60da2735 * Add Result.maybeThen(Result<Maybe<T>>, Function) 2018-07-10 17:37:54 +01:00
f6eb27450f Add thenWith(Function) 2018-07-09 08:00:53 +01:00
fb6b65e6de Add andThen(Function) 2018-07-08 19:46:45 +01:00
5a5fe003d0 Update CHANGELOG 2018-07-07 23:12:28 +01:00
c5247d7c14 Add Maybe.ifNothing(Runnable) 2018-07-07 18:21:35 +01:00
275a35d727 Update CHANGELOG 2018-06-30 16:29:17 +01:00
2f5b01f460 Remove Identity 2018-06-26 07:22:32 +01:00
d6d17a6682 Split Maybe interface into MaybeOptional and MaybeStream
Also deprecated Maybe.fromOptional(Optional)
2018-06-22 23:53:25 +01:00
5bf0fcbdf9 Add Maybe.stream() 2018-06-22 23:17:25 +01:00
eece4bf5ae Update Changelog 2018-06-22 07:02:13 +01:00
7e19fd4e9c Update Changelog 2018-06-21 17:57:55 +01:00
38d6f5cfec version: set to 0.7.0-SNAPSHOT 2018-03-04 20:16:13 +00:00
bc8f8e08ba version: set to 0.6.0 2018-03-04 19:44:31 +00:00
87d1dea399 CHANGELOG 2018-03-03 22:29:05 +00:00
4bb3819935 pom: fix accidental merge of SNAPSHOT into master 2018-03-03 08:34:56 +00:00
fc61092734 version: set to 0.5.0 2018-03-02 23:43:02 +00:00
f00492e73a CHANGELOG 2018-02-28 22:27:11 +00:00
3c73c5049b version: set to 0.5.0-SNAPSHOT 2017-12-10 18:58:44 +00:00
e0eb0614c3 Add Maybe, Just, Nothing 2017-12-10 16:11:12 +00:00
db3596063e Update CHANGELOG 2017-12-09 18:53:32 +00:00
7166ed016e version set to 0.4.0-SNAPSHOT 2017-11-26 19:55:28 +00:00
4fe38144cc version set to 0.3.0 2017-11-26 19:54:31 +00:00
247b2a2e74 Prepare for 0.3.0 release 2017-10-19 22:54:27 +01:00
ccc0c91473 Prepare for 0.2.0 release
* Update CHANGELOG
* Use `kemitix-parent` 4.0.0
* Make dependency versions properties
2017-10-19 19:38:15 +01:00
8f46a5a992 version: set to 0.1.0 2017-09-17 10:37:15 +01:00