Class InstanceComparator

java.lang.Object
com.aquima.interactions.profile.model.InstanceComparator
All Implemented Interfaces:
Comparator<IEntityInstance>

public class InstanceComparator extends Object implements Comparator<IEntityInstance>
This class is used to sort the instances from a context expression.
Since:
6.0
Author:
O. Kerpershoek
  • Constructor Details

    • InstanceComparator

      public InstanceComparator()
      Constructs a default instance comparator that sorts the instances ascending on sequence number. The oldest instance (lowest sequence number) will be first.
    • InstanceComparator

      public InstanceComparator(String sortAttribute, boolean sortAscending)
      Constructs the instance comparator with the name of the attribute the instances should be sorted on.
      Parameters:
      sortAttribute - The name of the attribute that should be used to sort the instances on.
      sortAscending - Boolean indicating if the instances should be sorted ascending (true) or descending (false).
  • Method Details