Added hashCode method for inner Token class as recommended by PMD

git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@419176 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Henri Yandell 2006-07-05 06:33:33 +00:00
parent 4a453bd132
commit 3f84c0412c
1 changed files with 9 additions and 0 deletions

View File

@ -618,6 +618,15 @@ public class DurationFormatUtils {
}
}
/**
* Returns a hashcode for the token equal to the
* hashcode for the token's value. Thus 'TT' and 'TTTT'
* will have the same hashcode.
*/
public int hashCode() {
return this.value.hashCode();
}
/**
* Represents this token as a String.
*