Commit Graph

8 Commits

Author SHA1 Message Date
Eugene Yokota f76e3aa2bb use java.util.Optional in Position 2017-01-25 20:58:37 -05:00
Dale Wijnand 41c7e9b85d
Improve xsbti.Maybe
* Make Nothing a singleton
* Make Maybe's constructor private
* Optimise equals to use reference equality first
* Optimise Just.equals by having proper, non-anonymous subclasses
* Having non-anonymous subclasses makes them have nicer classnames
* Give Just a value() method
2016-10-31 15:33:39 +00:00
Martin Duhem 4e233d81f9 Make Maybe's toString closer to the actual code 2016-08-21 14:24:34 +02:00
Martin Duhem 432c93b0bb Implement hashCode, equals and toString in Maybe
This brings Maybe's behavior closer to scala's Option.
2016-08-19 15:52:17 +02:00
Eugene Yokota 121972577d Define T2 as an interface. 2015-12-16 15:54:23 -05:00
Eugene Yokota 200b351552 Adds xsbti.T2. 2015-12-16 15:46:40 -05:00
Eugene Yokota 994634fc2c Adds xsbti.F1. 2015-12-16 15:28:00 -05:00
Eugene Yokota 871b4f4eef move modules around. 2015-08-20 00:59:57 -04:00