MCPcopy
hub / github.com/infinilabs/analysis-ik / hashCode

Method hashCode

src/main/java/org/wltea/analyzer/core/Lexeme.java:107–111  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

105 * @see java.lang.Object#hashCode()
106 */
107 public int hashCode(){
108 int absBegin = getBeginPosition();
109 int absEnd = getEndPosition();
110 return (absBegin * 37) + (absEnd * 31) + ((absBegin * absEnd) % getLength()) * 11;
111 }
112
113 /*
114 * 词元在排序集合中的比较算法

Callers

nothing calls this directly

Calls 3

getBeginPositionMethod · 0.95
getEndPositionMethod · 0.95
getLengthMethod · 0.95

Tested by

no test coverage detected