Package org.silverpeas.components.gallery.model

## Class MediaLogicalComparator

- java.lang.Object
- - org.silverpeas.core.util.comparator.AbstractComparator<C>
  - - org.silverpeas.core.util.comparator.AbstractComplexComparator<Media>
    - - org.silverpeas.components.gallery.model.MediaLogicalComparator

- All Implemented Interfaces:
    `Serializable`, `Comparator<Media>`

      public class MediaLogicalComparator
      extends org.silverpeas.core.util.comparator.AbstractComplexComparator<Media>

  This class handles the logical comparison of media data.
  See Also:
    Serialized Form

- - ### Nested Class Summary

    - ### Nested classes/interfaces inherited from class org.silverpeas.core.util.comparator.AbstractComplexComparator

      `org.silverpeas.core.util.comparator.AbstractComplexComparator.StringWrapper, org.silverpeas.core.util.comparator.AbstractComplexComparator.ValueBuffer`

  - ### Method Summary

    All Methods Static Methods Instance Methods Concrete Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `protected org.silverpeas.core.util.comparator.AbstractComplexComparator.ValueBuffer` | `getValuesToCompare​(Media media)` |
    `static MediaLogicalComparator` | `on​(List<MediaCriteria.QUERY_ORDER_BY> logicalOrderBy)` | Easy way to obtain an instance of the comparator.
    `static MediaLogicalComparator` | `on​(MediaCriteria.QUERY_ORDER_BY... logicalOrderBy)` | Easy way to obtain an instance of the comparator.

    - ### Methods inherited from class org.silverpeas.core.util.comparator.AbstractComplexComparator

      `compare`

    - ### Methods inherited from class org.silverpeas.core.util.comparator.AbstractComparator

      `compare, strictComparisonOnText`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

    - ### Methods inherited from interface java.util.Comparator

      `equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong`

- - ### Method Detail

    - #### on

          public static MediaLogicalComparator on​(MediaCriteria.QUERY_ORDER_BY... logicalOrderBy)

      Easy way to obtain an instance of the comparator.
      Parameters:
        `logicalOrderBy` -
      Returns:

    - #### on

          public static MediaLogicalComparator on​(List<MediaCriteria.QUERY_ORDER_BY> logicalOrderBy)

      Easy way to obtain an instance of the comparator.
      Parameters:
        `logicalOrderBy` -
      Returns:

    - #### getValuesToCompare

          protected org.silverpeas.core.util.comparator.AbstractComplexComparator.ValueBuffer getValuesToCompare​(Media media)

      Specified by:
        `getValuesToCompare` in class `org.silverpeas.core.util.comparator.AbstractComplexComparator<Media>`