コード例 #1
0
    public VocabularyHolder build() {
      VocabularyHolder holder = null;
      if (cache != null) {
        holder = new VocabularyHolder(cache, true);
      } else {
        holder = new VocabularyHolder();
      }
      holder.minWordFrequency = this.minWordFrequency;
      holder.hugeModelExpected = this.hugeModelExpected;
      holder.scavengerThreshold = this.scavengerThreshold;
      holder.retentionDelay = this.retentionDelay;

      return holder;
    }