Example usage for org.springframework.util.comparator ComparableComparator subclass-usage

List of usage examples for org.springframework.util.comparator ComparableComparator subclass-usage

Introduction

In this page you can find the example usage for org.springframework.util.comparator ComparableComparator subclass-usage.

Usage

From source file org.springmodules.validation.util.condition.range.NumberAwareComparableComparator.java

/**
 * A comparator that compares {@link Comparable} instances but treats comparison
 * of {@link Number} instances in a special manner. In order to support
 * comparison of numbers regardless of their type, this comparator transform the
 * numbers to {@link BigDecimal} and then does the comparison.
 *