- converted if/else to ternary operator
- formatted to match rest of java-util
- update readme