com.h3c.sdn.ctl.diag

## Class PacketSortComparator

- java.lang.Object
- - com.h3c.sdn.ctl.diag.PacketSortComparator

- All Implemented Interfaces:
    Serializable, Comparator<PacketModel>

      public class PacketSortComparator
      extends Object
      implements Comparator<PacketModel>, Serializable

  Comparator for Packet model objects to enable sorting by attributes.
  See Also:
    Serialized Form

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `PacketSortComparator(SortSpecification<PacketSortAttribute> sortSpec)`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `int` | `compare(PacketModel arg0, PacketModel arg1)`

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

- - ### Constructor Detail

    - #### PacketSortComparator

          public PacketSortComparator(SortSpecification<PacketSortAttribute> sortSpec)

  - ### Method Detail

    - #### compare

          public int compare(PacketModel arg0,
                    PacketModel arg1)

      Specified by:
        `compare` in interface `Comparator<PacketModel>`

Copyright © 2014. All Rights Reserved.