Commit graph

190 commits

Author SHA1 Message Date
9aa6ad1733 Merge branch 'master' into release/0.8.0
* master:
  Add `Result.peek(Consumer)`
2018-06-30 18:15:23 +01:00
9923bbc880 Add Result.peek(Consumer) 2018-06-30 18:13:29 +01:00
372357b499 Release 0.8.0 2018-06-30 16:30:58 +01:00
275a35d727 Update CHANGELOG 2018-06-30 16:29:17 +01:00
248bda0b4f Add Result.of(Callable) to reduce boiler plate when calling 2018-06-30 16:24:06 +01:00
74776975d2 pom: Add name, description, issueManagement, scm and inceptionYear elements 2018-06-30 15:11:26 +01:00
fd88193b2b pom: add parent 2018-06-30 12:55:34 +01:00
4fcbc83bab Skip pitest during deployment 2018-06-26 22:36:46 +01:00
d929995151 Revert "Version set to 0.7.0"
This reverts commit b396c5c49e.
2018-06-26 22:25:27 +01:00
b396c5c49e Version set to 0.7.0 2018-06-26 22:20:55 +01:00
1e85a14165 Result.Err.equals(): test when error is different 2018-06-26 22:18:32 +01:00
3e80dded1d Move BeanBuilder to experimental package and allow multiple with() calls 2018-06-26 07:31:03 +01:00
2f5b01f460 Remove Identity 2018-06-26 07:22:32 +01:00
18aa6406ef Result extends Functor 2018-06-26 07:19:39 +01:00
1f986139bc Tidy up checkstyle violations 2018-06-26 07:13:48 +01:00
684cdc06ae New and updated hashcode tests 2018-06-26 07:10:07 +01:00
24a233db5c Implement Result.equals() and hashcode() 2018-06-25 22:51:18 +01:00
7e92129dfc Merge branch 'enhance-result'
* enhance-result:
  Result satisfies the three Monad Laws
  Maybe satisfies the three Monad Laws
  Collapse Maybe{Optional,Stream} into Maybe
  Remove Maybe.fromOptional(Optional)
  Add Result.toString() implementations
  Add Result.toMaybe() and Result.invert()
  Suppress warning for unchecked cast
  Add Result.orElseThrow()
  Add Result.fromMaybe(Maybe, Supplier<Exception>)
  Added Result.maybe()
  Add Result.map()
2018-06-25 22:46:26 +01:00
093e35b4c1 Result satisfies the three Monad Laws 2018-06-25 22:39:25 +01:00
5d39be36ff Maybe satisfies the three Monad Laws 2018-06-25 22:36:18 +01:00
2211182c7d Collapse Maybe{Optional,Stream} into Maybe 2018-06-25 22:06:05 +01:00
7a150066a9 Remove Maybe.fromOptional(Optional) 2018-06-25 21:59:24 +01:00
3496fa0972 Add Result.toString() implementations 2018-06-25 21:54:55 +01:00
a62b2c8920 Remove Maybe.fromOptional(Optional) 2018-06-25 07:16:12 +01:00
f0be463028 Add Result.toMaybe() and Result.invert() 2018-06-24 22:36:02 +01:00
8ec3069d1d Suppress warning for unchecked cast 2018-06-24 08:16:54 +01:00
e9184f88bf Add Result.orElseThrow() 2018-06-24 08:16:24 +01:00
05aa6fb323 Add Result.fromMaybe(Maybe, Supplier<Exception>) 2018-06-23 22:29:47 +01:00
62a61213cc Added Result.maybe() 2018-06-23 18:22:05 +01:00
47193e6480 Add Result.map() 2018-06-23 18:14:19 +01:00
680b6b8a0d Make README version number neutral
Avoid needing to keep the version on the master branch up-to-date when it only
gets set on a release branch.
2018-06-23 07:46:23 +01:00
846bc88e4f Add comments to Maybe example in README 2018-06-23 07:35:48 +01:00
d6d17a6682 Split Maybe interface into MaybeOptional and MaybeStream
Also deprecated Maybe.fromOptional(Optional)
2018-06-22 23:53:25 +01:00
24a12cbf5b Update README with more examples for Result and updated badges 2018-06-22 23:17:42 +01:00
5bf0fcbdf9 Add Maybe.stream() 2018-06-22 23:17:25 +01:00
b2fa6e3dc2 Generic version DEV-SNAPSHOT for master branch 2018-06-22 17:48:09 +01:00
dba536d3d0 Add additional use case sample tests for Result 2018-06-22 17:39:22 +01:00
1977c47590 Replace type specifier in Result constructor with diamond operator 2018-06-22 07:09:21 +01:00
eece4bf5ae Update Changelog 2018-06-22 07:02:13 +01:00
bf8e383229 Move Maybe into maybe package 2018-06-21 18:59:31 +01:00
95d5837e31 More upgrade and update tests to match new assertj error messages 2018-06-21 18:48:04 +01:00
91884b2830 Upgrade dependencies 2018-06-21 18:38:06 +01:00
7cae02bc58 Merge branch 'result' into 'master'
Add Result<T>

See merge request kemitix/mon!33
2018-06-21 17:23:50 +00:00
0b82abeae7 Merge branch 'jenkins' into 'master'
Jenkins

See merge request kemitix/mon!32
2018-06-21 17:16:03 +00:00
672e537153 jenkins: update to master/release branch model 2018-06-21 18:10:41 +01:00
42c029dc82 Merge branch 'develop'
* develop:
  codesigning.asc.enc: removed
  jenkins: checkfor SNAPSHOT when pull request into master
  Dump environment - try #1
  travis: remove deploy
  jenkins: update jenkinsfile template
  version: set to 0.7.0-SNAPSHOT
2018-06-21 18:08:19 +01:00
7e19fd4e9c Update Changelog 2018-06-21 17:57:55 +01:00
470cd2fc24 Add Result<T> 2018-06-21 17:52:07 +01:00
ca46ee0d0f jenkins: update to template 2018-03-11 19:25:51 +00:00
9a5dcb5e7a jenkins: update template
* Use generic maven and jdk names
* Add sonarqube reporting
2018-03-10 18:16:47 +00:00