Class OComparatorFactory

java.lang.Object
com.orientechnologies.common.comparator.OComparatorFactory

public class OComparatorFactory extends Object
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 Details

  • Constructor Details

    • OComparatorFactory

      public OComparatorFactory()
  • Method Details

    • getComparator

      public <T> Comparator<T> getComparator(Class<T> clazz)
      Returns Comparator instance if applicable one exist or null otherwise.
      Type Parameters:
      T - Class of object that is going to be compared.
      Parameters:
      clazz - Class of object that is going to be compared.
      Returns:
      Comparator instance if applicable one exist or null otherwise.