ICU-11248 Improve SimpleFilteredSentenceBreakIterator.hashCode

X-SVN-Rev: 37680
This commit is contained in:
Steven R. Loomis 2015-07-18 00:18:17 +00:00
parent 9edacf9fa9
commit 7c2cd2be1a

View file

@ -1,6 +1,6 @@
/*
*******************************************************************************
* Copyright (C) 2014, International Business Machines Corporation and
* Copyright (C) 2014-2015, International Business Machines Corporation and
* others. All Rights Reserved.
*******************************************************************************
*/
@ -137,8 +137,7 @@ public class SimpleFilteredSentenceBreakIterator extends BreakIterator {
@Override
public int hashCode() {
assert false : "hashCode not designed";
return -1; // arbitrary constant
return (forwardsPartialTrie.hashCode() * 39) + (backwardsTrie.hashCode() * 11) + delegate.hashCode();
}
@Override