В java для сравнения на больше-меньше можно использовать как Comparable, так и Comparator. В статье приводится аргументация, почему использование компаратора ведет к большей явности кода.
Information
- Rating
- 3,956-th
- Registered
- Activity
User
В java для сравнения на больше-меньше можно использовать как Comparable, так и Comparator. В статье приводится аргументация, почему использование компаратора ведет к большей явности кода.