Class Match

java.lang.Object
net.sourceforge.pmd.cpd.Match
All Implemented Interfaces:
Comparable<Match>, Iterable<Mark>

public class Match extends Object implements Comparable<Match>, Iterable<Mark>
  • Field Details

    • MATCHES_COMPARATOR

      public static final Comparator<Match> MATCHES_COMPARATOR
    • LINES_COMPARATOR

      public static final Comparator<Match> LINES_COMPARATOR
  • Method Details

    • getMarkCount

      public int getMarkCount()
    • getLineCount

      public int getLineCount()
    • getTokenCount

      public int getTokenCount()
    • getMarkSet

      public Set<Mark> getMarkSet()
    • iterator

      public Iterator<Mark> iterator()
      Specified by:
      iterator in interface Iterable<Mark>
    • compareTo

      public int compareTo(Match other)
      Specified by:
      compareTo in interface Comparable<Match>
    • getFirstMark

      public Mark getFirstMark()
    • getSecondMark

      public Mark getSecondMark()
    • toString

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

      public int getEndIndex()