I've the following method in Java library:
public void setColumnComparator(final int columnIndex, final Comparator<T> columnComparator)
Idea says it has the following prorotype:
setColumnComparator(columnIndex: Int, columnComparator: ((Any!, Any!) -> Int)!)
How can I use it? I know it will be String, so I want something like this, but it doesn't compile.
setColumnComparator(0, Comparator<String> { a, b -> a.compareTo(b) }