Blog posts tagged with "comparator"

  • Bits of Java – Episode 22: Comparator vs Comparable

    Last week we discussed a bit about lambdas expressions and functional interfaces, and we saw that one of the built-in Java functional interfaces is the Comparator. It provides as functional method: int compare(T obj1, T obj2); which allows to compare two objects and returning an int, whose value depends on... [more]

  • subscribe via RSS