ru.bitel.bgbilling.modules.cerbercrypt.common.bean

## Class CardPacket.CardPacketComparator

- java.lang.Object
- - ru.bitel.bgbilling.modules.cerbercrypt.common.bean.CardPacket.CardPacketComparator

- All Implemented Interfaces:
    java.util.Comparator<CardPacket>
  Enclosing class:
    CardPacket

      public static class CardPacket.CardPacketComparator
      extends java.lang.Object
      implements java.util.Comparator<CardPacket>

  Сравниваемые характеристики в последовательности такой: packetId, date1, date2, status НЕ СРАВНИВАЕТСЯ: usercardId, т.к. на разных картах подписку то сравнивать надо.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `CardPacketComparator()`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `int` | `compare(CardPacket o1, CardPacket o2)`

    - ### 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

      `comparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong`

- - ### Constructor Detail

    - #### CardPacketComparator

          public CardPacketComparator()

  - ### Method Detail

    - #### compare

          public int compare(CardPacket o1,
                             CardPacket o2)

      Specified by:
        `compare` in interface `java.util.Comparator<CardPacket>`