Package fr.neatmonster.nocheatplus.utilities.ds.prefixtree.SimpleTimedCharPrefixTree

Examples of fr.neatmonster.nocheatplus.utilities.ds.prefixtree.SimpleTimedCharPrefixTree.SimpleTimedCharLookupEntry


  }

  protected float getScore(final List<Character> chars, final long ts) {
    lastAdd = ts;
    final int len = chars.size();
    final SimpleTimedCharLookupEntry entry = tree.lookup(chars, true);
    final int depth = entry.depth;
    float score = 0f;
    for (int i = 0; i < depth ; i++){
      final long age = ts - entry.timeInsertion[i];
      if (age < durExpire)
View Full Code Here


        ,
         new LookupEntryFactory<Character, SimpleTimedCharNode, SimpleTimedCharLookupEntry>() {
          @Override
          public final SimpleTimedCharLookupEntry newLookupEntry(final SimpleTimedCharNode node,
              final SimpleTimedCharNode insertion, final int depth, final boolean hasPrefix) {
            return new SimpleTimedCharLookupEntry(node, insertion, depth, hasPrefix);
          }
        },
        access);
  }
View Full Code Here

TOP

Related Classes of fr.neatmonster.nocheatplus.utilities.ds.prefixtree.SimpleTimedCharPrefixTree.SimpleTimedCharLookupEntry

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.