|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectca.umontreal.iro.rali.PathCount
public class PathCount
Pair with a String and a count of its occurrences to be used in a Map
| Field Summary | |
|---|---|
static java.util.Comparator<PathCount> |
decVal
Decreasing frequency comparator |
| Method Summary | |
|---|---|
void |
bump()
Increment the count by one of this XPath |
int |
compareTo(PathCount that)
Natural comparison on the alphabetic value of the string |
boolean |
equals(java.lang.Object that)
Two paths are equals if their string are equal |
java.lang.String |
getPath()
Accessor for the path |
int |
getVal()
Accessor for the count |
int |
hashCode()
The hashcode of this element is the one of the string of the XPath |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static java.util.Comparator<PathCount> decVal
| Method Detail |
|---|
public java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String getPath()
public int getVal()
public void bump()
public int hashCode()
hashCode in class java.lang.ObjectObject.hashCode()public boolean equals(java.lang.Object that)
equals in class java.lang.ObjectObject.equals(java.lang.Object)public int compareTo(PathCount that)
compareTo in interface java.lang.Comparable<PathCount>Comparable.compareTo(java.lang.Object)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||