Java 类com.google.common.cache.CacheBuilder.OneWeigher 实例源码

项目:codebuff    文件:LocalCache.java   
CacheBuilder<K, V> recreateCacheBuilder() {
  CacheBuilder<K, V> builder = CacheBuilder.newBuilder().setKeyStrength(keyStrength).setValueStrength(valueStrength).keyEquivalence(keyEquivalence).valueEquivalence(valueEquivalence).concurrencyLevel(concurrencyLevel).removalListener(removalListener);
  builder.strictParsing = false;
  if (expireAfterWriteNanos > 0) {
    builder.expireAfterWrite(expireAfterWriteNanos, TimeUnit.NANOSECONDS);
  }
  if (expireAfterAccessNanos > 0) {
    builder.expireAfterAccess(expireAfterAccessNanos, TimeUnit.NANOSECONDS);
  }
  if (weigher != OneWeigher.INSTANCE) {
    builder.weigher(weigher);
    if (maxWeight != UNSET_INT) {
      builder.maximumWeight(maxWeight);
    }
  } else {
    if (maxWeight != UNSET_INT) {
      builder.maximumSize(maxWeight);
    }
  }
  if (ticker != null) {
    builder.ticker(ticker);
  }
  return builder;
}
项目:codebuff    文件:LocalCache.java   
CacheBuilder<K, V> recreateCacheBuilder() {
  CacheBuilder<K, V> builder = CacheBuilder.newBuilder().setKeyStrength(keyStrength).setValueStrength(valueStrength).keyEquivalence(keyEquivalence).valueEquivalence(valueEquivalence).concurrencyLevel(concurrencyLevel).removalListener(removalListener);
  builder.strictParsing = false;
  if (expireAfterWriteNanos > 0) {
    builder.expireAfterWrite(expireAfterWriteNanos, TimeUnit.NANOSECONDS);
  }
  if (expireAfterAccessNanos > 0) {
    builder.expireAfterAccess(expireAfterAccessNanos, TimeUnit.NANOSECONDS);
  }
  if (weigher != OneWeigher.INSTANCE) {
    builder.weigher(weigher);
    if (maxWeight != UNSET_INT) {
      builder.maximumWeight(maxWeight);
    }
  } else {
    if (maxWeight != UNSET_INT) {
      builder.maximumSize(maxWeight);
    }
  }
  if (ticker != null) {
    builder.ticker(ticker);
  }
  return builder;
}
项目:codebuff    文件:LocalCache.java   
CacheBuilder<K, V> recreateCacheBuilder() {
  CacheBuilder<K, V> builder = CacheBuilder.newBuilder().setKeyStrength(keyStrength).setValueStrength(valueStrength).keyEquivalence(keyEquivalence).valueEquivalence(valueEquivalence).concurrencyLevel(concurrencyLevel).removalListener(removalListener);
  builder.strictParsing = false;
  if (expireAfterWriteNanos > 0) {
    builder.expireAfterWrite(expireAfterWriteNanos, TimeUnit.NANOSECONDS);
  }
  if (expireAfterAccessNanos > 0) {
    builder.expireAfterAccess(expireAfterAccessNanos, TimeUnit.NANOSECONDS);
  }
  if (weigher != OneWeigher.INSTANCE) {
    builder.weigher(weigher);
    if (maxWeight != UNSET_INT) {
      builder.maximumWeight(maxWeight);
    }
  } else {
    if (maxWeight != UNSET_INT) {
      builder.maximumSize(maxWeight);
    }
  }
  if (ticker != null) {
    builder.ticker(ticker);
  }
  return builder;
}
项目:codebuff    文件:LocalCache.java   
CacheBuilder<K, V> recreateCacheBuilder() {
        CacheBuilder<K, V> builder = CacheBuilder.newBuilder().setKeyStrength(keyStrength).setValueStrength(valueStrength).keyEquivalence(keyEquivalence).valueEquivalence(valueEquivalence).concurrencyLevel(concurrencyLevel).removalListener(removalListener);
        builder.strictParsing = false;
        if (expireAfterWriteNanos > 0) {
    builder.expireAfterWrite(expireAfterWriteNanos, TimeUnit.NANOSECONDS);
        }
        if (expireAfterAccessNanos > 0) {
    builder.expireAfterAccess(expireAfterAccessNanos, TimeUnit.NANOSECONDS);
        }
        if (weigher != OneWeigher.INSTANCE) {
    builder.weigher(weigher);
    if (maxWeight != UNSET_INT) {
                                              builder.maximumWeight(maxWeight);
    }
        } else {
          if (maxWeight != UNSET_INT) {
            builder.maximumSize(maxWeight);
          }
        }
        if (ticker != null) {
    builder.ticker(ticker);
        }
        return builder;
}
项目:codebuff    文件:LocalCache.java   
CacheBuilder<K, V> recreateCacheBuilder() {
  CacheBuilder<K, V> builder = CacheBuilder.newBuilder().setKeyStrength(keyStrength).setValueStrength(valueStrength).keyEquivalence(keyEquivalence).valueEquivalence(valueEquivalence).concurrencyLevel(concurrencyLevel).removalListener(removalListener);
  builder.strictParsing = false;
  if (expireAfterWriteNanos > 0) {
    builder.expireAfterWrite(expireAfterWriteNanos, TimeUnit.NANOSECONDS);
  }
  if (expireAfterAccessNanos > 0) {
    builder.expireAfterAccess(expireAfterAccessNanos, TimeUnit.NANOSECONDS);
  }
  if (weigher != OneWeigher.INSTANCE) {
    builder.weigher(weigher);
    if (maxWeight != UNSET_INT) {
      builder.maximumWeight(maxWeight);
    }
  } else {
    if (maxWeight != UNSET_INT) {
      builder.maximumSize(maxWeight);
    }
  }
  if (ticker != null) {
    builder.ticker(ticker);
  }
  return builder;
}
项目:cnGuava    文件:LocalCache.java   
CacheBuilder<K, V> recreateCacheBuilder() {
    CacheBuilder<K, V> builder = CacheBuilder.newBuilder().setKeyStrength(keyStrength)
            .setValueStrength(valueStrength).keyEquivalence(keyEquivalence).valueEquivalence(valueEquivalence)
            .concurrencyLevel(concurrencyLevel).removalListener(removalListener);
    builder.strictParsing = false;
    if (expireAfterWriteNanos > 0) {
        builder.expireAfterWrite(expireAfterWriteNanos, TimeUnit.NANOSECONDS);
    }
    if (expireAfterAccessNanos > 0) {
        builder.expireAfterAccess(expireAfterAccessNanos, TimeUnit.NANOSECONDS);
    }
    if (weigher != OneWeigher.INSTANCE) {
        builder.weigher(weigher);
        if (maxWeight != UNSET_INT) {
            builder.maximumWeight(maxWeight);
        }
    } else {
        if (maxWeight != UNSET_INT) {
            builder.maximumSize(maxWeight);
        }
    }
    if (ticker != null) {
        builder.ticker(ticker);
    }
    return builder;
}
项目:guava-mock    文件:LocalCache.java   
CacheBuilder<K, V> recreateCacheBuilder() {
  CacheBuilder<K, V> builder =
      CacheBuilder.newBuilder()
          .setKeyStrength(keyStrength)
          .setValueStrength(valueStrength)
          .keyEquivalence(keyEquivalence)
          .valueEquivalence(valueEquivalence)
          .concurrencyLevel(concurrencyLevel)
          .removalListener(removalListener);
  builder.strictParsing = false;
  if (expireAfterWriteNanos > 0) {
    builder.expireAfterWrite(expireAfterWriteNanos, TimeUnit.NANOSECONDS);
  }
  if (expireAfterAccessNanos > 0) {
    builder.expireAfterAccess(expireAfterAccessNanos, TimeUnit.NANOSECONDS);
  }
  if (weigher != OneWeigher.INSTANCE) {
    builder.weigher(weigher);
    if (maxWeight != UNSET_INT) {
      builder.maximumWeight(maxWeight);
    }
  } else {
    if (maxWeight != UNSET_INT) {
      builder.maximumSize(maxWeight);
    }
  }
  if (ticker != null) {
    builder.ticker(ticker);
  }
  return builder;
}
项目:googles-monorepo-demo    文件:LocalCache.java   
CacheBuilder<K, V> recreateCacheBuilder() {
  CacheBuilder<K, V> builder =
      CacheBuilder.newBuilder()
          .setKeyStrength(keyStrength)
          .setValueStrength(valueStrength)
          .keyEquivalence(keyEquivalence)
          .valueEquivalence(valueEquivalence)
          .concurrencyLevel(concurrencyLevel)
          .removalListener(removalListener);
  builder.strictParsing = false;
  if (expireAfterWriteNanos > 0) {
    builder.expireAfterWrite(expireAfterWriteNanos, TimeUnit.NANOSECONDS);
  }
  if (expireAfterAccessNanos > 0) {
    builder.expireAfterAccess(expireAfterAccessNanos, TimeUnit.NANOSECONDS);
  }
  if (weigher != OneWeigher.INSTANCE) {
    builder.weigher(weigher);
    if (maxWeight != UNSET_INT) {
      builder.maximumWeight(maxWeight);
    }
  } else {
    if (maxWeight != UNSET_INT) {
      builder.maximumSize(maxWeight);
    }
  }
  if (ticker != null) {
    builder.ticker(ticker);
  }
  return builder;
}
项目:codebuff    文件:LocalCache.java   
CacheBuilder<K, V> recreateCacheBuilder() {
  CacheBuilder<K, V> builder =
      CacheBuilder.newBuilder()
          .setKeyStrength(keyStrength)
          .setValueStrength(valueStrength)
          .keyEquivalence(keyEquivalence)
          .valueEquivalence(valueEquivalence)
          .concurrencyLevel(concurrencyLevel)
          .removalListener(removalListener);
  builder.strictParsing = false;
  if (expireAfterWriteNanos > 0) {
    builder.expireAfterWrite(expireAfterWriteNanos, TimeUnit.NANOSECONDS);
  }
  if (expireAfterAccessNanos > 0) {
    builder.expireAfterAccess(expireAfterAccessNanos, TimeUnit.NANOSECONDS);
  }
  if (weigher != OneWeigher.INSTANCE) {
    builder.weigher(weigher);
    if (maxWeight != UNSET_INT) {
      builder.maximumWeight(maxWeight);
    }
  } else {
    if (maxWeight != UNSET_INT) {
      builder.maximumSize(maxWeight);
    }
  }
  if (ticker != null) {
    builder.ticker(ticker);
  }
  return builder;
}
项目:bts    文件:LocalCache.java   
CacheBuilder<K, V> recreateCacheBuilder() {
  CacheBuilder<K, V> builder = CacheBuilder.newBuilder()
      .setKeyStrength(keyStrength)
      .setValueStrength(valueStrength)
      .keyEquivalence(keyEquivalence)
      .valueEquivalence(valueEquivalence)
      .concurrencyLevel(concurrencyLevel)
      .removalListener(removalListener);
  builder.strictParsing = false;
  if (expireAfterWriteNanos > 0) {
    builder.expireAfterWrite(expireAfterWriteNanos, TimeUnit.NANOSECONDS);
  }
  if (expireAfterAccessNanos > 0) {
    builder.expireAfterAccess(expireAfterAccessNanos, TimeUnit.NANOSECONDS);
  }
  if (weigher != OneWeigher.INSTANCE) {
    builder.weigher(weigher);
    if (maxWeight != UNSET_INT) {
      builder.maximumWeight(maxWeight);
    }
  } else {
    if (maxWeight != UNSET_INT) {
      builder.maximumSize(maxWeight);
    }
  }
  if (ticker != null) {
    builder.ticker(ticker);
  }
  return builder;
}
项目:j2objc    文件:LocalCache.java   
CacheBuilder<K, V> recreateCacheBuilder() {
  CacheBuilder<K, V> builder = CacheBuilder.newBuilder()
      .setKeyStrength(keyStrength)
      .setValueStrength(valueStrength)
      .keyEquivalence(keyEquivalence)
      .valueEquivalence(valueEquivalence)
      .concurrencyLevel(concurrencyLevel)
      .removalListener(removalListener);
  builder.strictParsing = false;
  if (expireAfterWriteNanos > 0) {
    builder.expireAfterWrite(expireAfterWriteNanos, TimeUnit.NANOSECONDS);
  }
  if (expireAfterAccessNanos > 0) {
    builder.expireAfterAccess(expireAfterAccessNanos, TimeUnit.NANOSECONDS);
  }
  if (weigher != OneWeigher.INSTANCE) {
    builder.weigher(weigher);
    if (maxWeight != UNSET_INT) {
      builder.maximumWeight(maxWeight);
    }
  } else {
    if (maxWeight != UNSET_INT) {
      builder.maximumSize(maxWeight);
    }
  }
  if (ticker != null) {
    builder.ticker(ticker);
  }
  return builder;
}
项目:guava-libraries    文件:LocalCache.java   
CacheBuilder<K, V> recreateCacheBuilder() {
  CacheBuilder<K, V> builder = CacheBuilder.newBuilder()
      .setKeyStrength(keyStrength)
      .setValueStrength(valueStrength)
      .keyEquivalence(keyEquivalence)
      .valueEquivalence(valueEquivalence)
      .concurrencyLevel(concurrencyLevel)
      .removalListener(removalListener);
  builder.strictParsing = false;
  if (expireAfterWriteNanos > 0) {
    builder.expireAfterWrite(expireAfterWriteNanos, TimeUnit.NANOSECONDS);
  }
  if (expireAfterAccessNanos > 0) {
    builder.expireAfterAccess(expireAfterAccessNanos, TimeUnit.NANOSECONDS);
  }
  if (weigher != OneWeigher.INSTANCE) {
    builder.weigher(weigher);
    if (maxWeight != UNSET_INT) {
      builder.maximumWeight(maxWeight);
    }
  } else {
    if (maxWeight != UNSET_INT) {
      builder.maximumSize(maxWeight);
    }
  }
  if (ticker != null) {
    builder.ticker(ticker);
  }
  return builder;
}
项目:VectorAttackScanner    文件:LocalCache.java   
CacheBuilder<K, V> recreateCacheBuilder() {
  CacheBuilder<K, V> builder = CacheBuilder.newBuilder()
      .setKeyStrength(keyStrength)
      .setValueStrength(valueStrength)
      .keyEquivalence(keyEquivalence)
      .valueEquivalence(valueEquivalence)
      .concurrencyLevel(concurrencyLevel)
      .removalListener(removalListener);
  builder.strictParsing = false;
  if (expireAfterWriteNanos > 0) {
    builder.expireAfterWrite(expireAfterWriteNanos, TimeUnit.NANOSECONDS);
  }
  if (expireAfterAccessNanos > 0) {
    builder.expireAfterAccess(expireAfterAccessNanos, TimeUnit.NANOSECONDS);
  }
  if (weigher != OneWeigher.INSTANCE) {
    builder.weigher(weigher);
    if (maxWeight != UNSET_INT) {
      builder.maximumWeight(maxWeight);
    }
  } else {
    if (maxWeight != UNSET_INT) {
      builder.maximumSize(maxWeight);
    }
  }
  if (ticker != null) {
    builder.ticker(ticker);
  }
  return builder;
}
项目:guava    文件:LocalCache.java   
CacheBuilder<K, V> recreateCacheBuilder() {
  CacheBuilder<K, V> builder =
      CacheBuilder.newBuilder()
          .setKeyStrength(keyStrength)
          .setValueStrength(valueStrength)
          .keyEquivalence(keyEquivalence)
          .valueEquivalence(valueEquivalence)
          .concurrencyLevel(concurrencyLevel)
          .removalListener(removalListener);
  builder.strictParsing = false;
  if (expireAfterWriteNanos > 0) {
    builder.expireAfterWrite(expireAfterWriteNanos, TimeUnit.NANOSECONDS);
  }
  if (expireAfterAccessNanos > 0) {
    builder.expireAfterAccess(expireAfterAccessNanos, TimeUnit.NANOSECONDS);
  }
  if (weigher != OneWeigher.INSTANCE) {
    builder.weigher(weigher);
    if (maxWeight != UNSET_INT) {
      builder.maximumWeight(maxWeight);
    }
  } else {
    if (maxWeight != UNSET_INT) {
      builder.maximumSize(maxWeight);
    }
  }
  if (ticker != null) {
    builder.ticker(ticker);
  }
  return builder;
}
项目:guava    文件:LocalCache.java   
CacheBuilder<K, V> recreateCacheBuilder() {
  CacheBuilder<K, V> builder =
      CacheBuilder.newBuilder()
          .setKeyStrength(keyStrength)
          .setValueStrength(valueStrength)
          .keyEquivalence(keyEquivalence)
          .valueEquivalence(valueEquivalence)
          .concurrencyLevel(concurrencyLevel)
          .removalListener(removalListener);
  builder.strictParsing = false;
  if (expireAfterWriteNanos > 0) {
    builder.expireAfterWrite(expireAfterWriteNanos, TimeUnit.NANOSECONDS);
  }
  if (expireAfterAccessNanos > 0) {
    builder.expireAfterAccess(expireAfterAccessNanos, TimeUnit.NANOSECONDS);
  }
  if (weigher != OneWeigher.INSTANCE) {
    builder.weigher(weigher);
    if (maxWeight != UNSET_INT) {
      builder.maximumWeight(maxWeight);
    }
  } else {
    if (maxWeight != UNSET_INT) {
      builder.maximumSize(maxWeight);
    }
  }
  if (ticker != null) {
    builder.ticker(ticker);
  }
  return builder;
}
项目:org.openntf.domino    文件:LocalCache.java   
CacheBuilder<K, V> recreateCacheBuilder() {
  CacheBuilder<K, V> builder = CacheBuilder.newBuilder()
      .setKeyStrength(keyStrength)
      .setValueStrength(valueStrength)
      .keyEquivalence(keyEquivalence)
      .valueEquivalence(valueEquivalence)
      .concurrencyLevel(concurrencyLevel)
      .removalListener(removalListener);
  builder.strictParsing = false;
  if (expireAfterWriteNanos > 0) {
    builder.expireAfterWrite(expireAfterWriteNanos, TimeUnit.NANOSECONDS);
  }
  if (expireAfterAccessNanos > 0) {
    builder.expireAfterAccess(expireAfterAccessNanos, TimeUnit.NANOSECONDS);
  }
  if (weigher != OneWeigher.INSTANCE) {
    builder.weigher(weigher);
    if (maxWeight != UNSET_INT) {
      builder.maximumWeight(maxWeight);
    }
  } else {
    if (maxWeight != UNSET_INT) {
      builder.maximumSize(maxWeight);
    }
  }
  if (ticker != null) {
    builder.ticker(ticker);
  }
  return builder;
}
项目:guava-mock    文件:LocalCache.java   
boolean customWeigher() {
  return weigher != OneWeigher.INSTANCE;
}
项目:googles-monorepo-demo    文件:LocalCache.java   
boolean customWeigher() {
  return weigher != OneWeigher.INSTANCE;
}
项目:codebuff    文件:LocalCache.java   
boolean customWeigher() {
  return weigher != OneWeigher.INSTANCE;
}
项目:codebuff    文件:LocalCache.java   
boolean customWeigher() {
  return weigher != OneWeigher.INSTANCE;
}
项目:codebuff    文件:LocalCache.java   
boolean customWeigher() {
  return weigher != OneWeigher.INSTANCE;
}
项目:codebuff    文件:LocalCache.java   
boolean customWeigher() {
return weigher != OneWeigher.INSTANCE;
    }
项目:codebuff    文件:LocalCache.java   
boolean customWeigher() {
  return weigher != OneWeigher.INSTANCE;
}
项目:codebuff    文件:LocalCache.java   
boolean customWeigher() {
  return weigher != OneWeigher.INSTANCE;
}
项目:bts    文件:LocalCache.java   
boolean customWeigher() {
  return weigher != OneWeigher.INSTANCE;
}
项目:j2objc    文件:LocalCache.java   
boolean customWeigher() {
  return weigher != OneWeigher.INSTANCE;
}
项目:guava-libraries    文件:LocalCache.java   
boolean customWeigher() {
  return weigher != OneWeigher.INSTANCE;
}
项目:VectorAttackScanner    文件:LocalCache.java   
boolean customWeigher() {
  return weigher != OneWeigher.INSTANCE;
}
项目:guava    文件:LocalCache.java   
boolean customWeigher() {
  return weigher != OneWeigher.INSTANCE;
}
项目:guava    文件:LocalCache.java   
boolean customWeigher() {
  return weigher != OneWeigher.INSTANCE;
}
项目:cnGuava    文件:LocalCache.java   
boolean customWeigher() {
    return weigher != OneWeigher.INSTANCE;
}
项目:org.openntf.domino    文件:LocalCache.java   
boolean customWeigher() {
  return weigher != OneWeigher.INSTANCE;
}