com.bestvike.collections.generic.ComparisonComparer Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of linq Show documentation
Show all versions of linq Show documentation
LINQ to Objects for Java.
The newest version!
package com.bestvike.collections.generic;
import com.bestvike.IComparison;
import java.util.Comparator;
/**
* Created by 许崇雷 on 2018-04-21.
*/
final class ComparisonComparer implements Comparator {
private final IComparison super T> comparison;
ComparisonComparer(IComparison super T> comparison) {
this.comparison = comparison;
}
@Override
public int compare(T x, T y) {
return this.comparison.compare(x, y);
}
}