java.lang.Object
com.aquima.interactions.composer.model.Element
com.aquima.interactions.framework.container.instance.list.InstanceListOrder
All Implemented Interfaces:
IElement, Serializable

public class InstanceListOrder extends Element
This class is used to specify the sort order.
Since:
5.0
Author:
O. Kerpershoek
See Also:
  • Field Details

    • ASCENDING

      public static final int ASCENDING
      This member defines the ASCENDING sort order.
      See Also:
    • DESCENDING

      public static final int DESCENDING
      This member defines the DESCENDING sort order.
      See Also:
  • Constructor Details

    • InstanceListOrder

      public InstanceListOrder(String attribute, int order, DataType dataType, int columnNr)
      Constructs the class with the required parameters.
      Parameters:
      attribute - The attribute that should be used to sort on.
      order - The direction of the sorting.
      dataType - The type of the attribute.
      columnNr - The column number.
  • Method Details

    • duplicate

      public Element duplicate()
      Description copied from interface: IElement
      This method should clone the element and return the cloned element. The duplicate method should usually make a deep copy of the element, with the exception of members that are not mutable (and thus can safely be shared between multiple copies). The properties of an element are considered to be non-mutable, and will thus by default be copied.
      Returns:
      The cloned (duplicate) element.
    • getAttribute

      public String getAttribute()
      This method returns the attribute that should be used for sorting.
      Returns:
      the attribute that should be used for sorting.
    • getOrder

      public int getOrder()
      This method returns an integer indicating the direction of the sorting.
      Returns:
      an integer indicating the direction of the sorting.
    • getDataType

      public DataType getDataType()
      This method returns the type of the attribute.
      Returns:
      the type of the attribute.
    • getColumnNr

      public int getColumnNr()
      This method returns the column number containing the attribute.
      Returns:
      the column number containing the attribute.
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object other)
      Overrides:
      equals in class Element
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Element