Beispiel #1
0
 @Override
 public int hashCode() {
   int hash = MurmurHash.initialize();
   hash = MurmurHash.update(hash, getActionType().ordinal());
   hash = MurmurHash.update(hash, ruleIndex);
   hash = MurmurHash.update(hash, actionIndex);
   return MurmurHash.finish(hash, 3);
 }
Beispiel #2
0
 @Override
 public int hashCode() {
   int hashCode = MurmurHash.initialize();
   hashCode = MurmurHash.update(hashCode, ruleIndex);
   hashCode = MurmurHash.update(hashCode, predIndex);
   hashCode = MurmurHash.update(hashCode, isCtxDependent ? 1 : 0);
   hashCode = MurmurHash.finish(hashCode, 3);
   return hashCode;
 }
Beispiel #3
0
 @Override
 public int hashCode() {
   int hashCode = MurmurHash.initialize(7);
   hashCode = MurmurHash.update(hashCode, state.stateNumber);
   hashCode = MurmurHash.update(hashCode, alt);
   hashCode = MurmurHash.update(hashCode, context);
   hashCode = MurmurHash.update(hashCode, semanticContext);
   hashCode = MurmurHash.update(hashCode, passedThroughNonGreedyDecision ? 1 : 0);
   hashCode = MurmurHash.update(hashCode, lexerActionExecutor);
   hashCode = MurmurHash.finish(hashCode, 6);
   return hashCode;
 }
Beispiel #4
0
 @Override
 public int hashCode() {
   return MurmurHash.hashCode(opnds, OR.class.hashCode());
 }