net.sourceforge.pmd.dcd.graph

## Class MemberNodeComparator

- java.lang.Object
- - net.sourceforge.pmd.dcd.graph.MemberNodeComparator

- All Implemented Interfaces:
    Comparator<MemberNode>

      public final class MemberNodeComparator
      extends Object
      implements Comparator<MemberNode>

  Compares MemberNodes. FieldNodes are smaller than ConstructorNodes which are smaller than MethodNodes.

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `static MemberNodeComparator` | `INSTANCE`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `int` | `compare(MemberNode node1, MemberNode node2)`

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

- - ### Field Detail

    - #### INSTANCE

          public static final MemberNodeComparator INSTANCE

  - ### Method Detail

    - #### compare

          public int compare(MemberNode node1,
                    MemberNode node2)

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

Copyright © 2002-2013 InfoEther. All Rights Reserved.