Guest User

Untitled

a guest
Jul 17th, 2018
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. public class RoundDown {
  2.  
  3. public int mapObject(final double d) {
  4. return (int) d;
  5. }
  6.  
  7. public Function<Integer, Integer> mapMorphism(final Function<Double, Double> m) {
  8. return i -> (int) m.apply((double) i);
  9. }
  10. }
Add Comment
Please, Sign In to add comment