|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectPathCount
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 |
private java.lang.String |
path
|
private int |
val
|
Constructor Summary | |
---|---|
PathCount(java.lang.String path)
Initialize the count to 1 for this path string |
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 |
---|
private int val
private java.lang.String path
public static java.util.Comparator<PathCount> decVal
Constructor Detail |
---|
PathCount(java.lang.String path)
path
- Method Detail |
---|
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String getPath()
public int getVal()
public void bump()
public int hashCode()
hashCode
in class java.lang.Object
Object.hashCode()
public boolean equals(java.lang.Object that)
equals
in class java.lang.Object
Object.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 |