2
votes
0answers
41 views

Safely network reconnection (netty based)

NettyConnectionManager.scala: ...
7
votes
3answers
180 views

How can I make my isSorted function faster?

I made an isSorted function in Scala and Java as well and when I measured the time of functions' run I saw that the Scala version was very slow. It ran about 3.2 ...
0
votes
1answer
96 views

How to ensure file exists, and get the absolutePath? [closed]

I need to: create an object with the absolute path of a file ensure the file exists My approach is to create a new Path and call toFile to make sure it exists - ...
6
votes
3answers
447 views

A scala implementation of the Java trim method

I'm a Scala beginner and looking at the trim() method of the Java API. I noticed side effects, so I attempted to implement a functional version in Scala. Here is ...
2
votes
4answers
2k views

Is my Scala Option conversion to Java correct?

Summary: I've implemented what I think is a complete Java implementation of the Scala Option class. Could you please review and let me know if I have correctly and completely implemented it? And if ...