Package net.sourceforge.pmd.cpd
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 Summary
Fields Modifier and Type Field Description static Comparator<Match>
LINES_COMPARATOR
static Comparator<Match>
MATCHES_COMPARATOR
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(Match other)
int
getEndIndex()
Mark
getFirstMark()
int
getLineCount()
int
getMarkCount()
Set<Mark>
getMarkSet()
Mark
getSecondMark()
int
getTokenCount()
Iterator<Mark>
iterator()
String
toString()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Field Detail
-
MATCHES_COMPARATOR
public static final Comparator<Match> MATCHES_COMPARATOR
-
LINES_COMPARATOR
public static final Comparator<Match> LINES_COMPARATOR
-
-
Method Detail
-
getMarkCount
public int getMarkCount()
-
getLineCount
public int getLineCount()
-
getTokenCount
public int getTokenCount()
-
compareTo
public int compareTo(Match other)
- Specified by:
compareTo
in interfaceComparable<Match>
-
getFirstMark
public Mark getFirstMark()
-
getSecondMark
public Mark getSecondMark()
-
getEndIndex
public int getEndIndex()
-
-