Assesment test for Java developer
position.
You should develop Convertor
to convert value of int
type to two short
values (crack
method) and back to orignal value (uncrack
method)
- Fork this repo
- Implement Convertor
- Implement ConvertorTest
gradlew test
should be fine
- Document is identified by ID
- ID is of
int
type - We need to store documents using Apache Cassandra
- For Cassandra we will use two
short
s as a primary key, to optimize partition size - Therefore we need to convert
int
toshort
's and vice versa