Class OComparatorFactory
java.lang.Object
com.orientechnologies.common.comparator.OComparatorFactory
Creates comparators for classes that does not implement
Comparable but logically can be
compared.- Since:
- 03.07.12
- Author:
- Andrey Lomakin (a.lomakin-at-orientdb.com)
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T> Comparator<T>getComparator(Class<T> clazz) ReturnsComparatorinstance if applicable one exist ornullotherwise.
-
Field Details
-
INSTANCE
-
-
Constructor Details
-
OComparatorFactory
public OComparatorFactory()
-
-
Method Details
-
getComparator
ReturnsComparatorinstance if applicable one exist ornullotherwise.- Type Parameters:
T- Class of object that is going to be compared.- Parameters:
clazz- Class of object that is going to be compared.- Returns:
Comparatorinstance if applicable one exist ornullotherwise.
-