Java 类com.google.common.collect.MapMaker.RemovalListener 实例源码

项目:bts    文件:MapMakerInternalMap.java   
AbstractSerializationProxy(Strength keyStrength, Strength valueStrength,
    Equivalence<Object> keyEquivalence, Equivalence<Object> valueEquivalence,
    long expireAfterWriteNanos, long expireAfterAccessNanos, int maximumSize,
    int concurrencyLevel, RemovalListener<? super K, ? super V> removalListener,
    ConcurrentMap<K, V> delegate) {
  this.keyStrength = keyStrength;
  this.valueStrength = valueStrength;
  this.keyEquivalence = keyEquivalence;
  this.valueEquivalence = valueEquivalence;
  this.expireAfterWriteNanos = expireAfterWriteNanos;
  this.expireAfterAccessNanos = expireAfterAccessNanos;
  this.maximumSize = maximumSize;
  this.concurrencyLevel = concurrencyLevel;
  this.removalListener = removalListener;
  this.delegate = delegate;
}
项目:guava-libraries    文件:MapMakerInternalMap.java   
AbstractSerializationProxy(Strength keyStrength, Strength valueStrength,
    Equivalence<Object> keyEquivalence, Equivalence<Object> valueEquivalence,
    long expireAfterWriteNanos, long expireAfterAccessNanos, int maximumSize,
    int concurrencyLevel, RemovalListener<? super K, ? super V> removalListener,
    ConcurrentMap<K, V> delegate) {
  this.keyStrength = keyStrength;
  this.valueStrength = valueStrength;
  this.keyEquivalence = keyEquivalence;
  this.valueEquivalence = valueEquivalence;
  this.expireAfterWriteNanos = expireAfterWriteNanos;
  this.expireAfterAccessNanos = expireAfterAccessNanos;
  this.maximumSize = maximumSize;
  this.concurrencyLevel = concurrencyLevel;
  this.removalListener = removalListener;
  this.delegate = delegate;
}
项目:VectorAttackScanner    文件:MapMakerInternalMap.java   
AbstractSerializationProxy(Strength keyStrength, Strength valueStrength,
    Equivalence<Object> keyEquivalence, Equivalence<Object> valueEquivalence,
    long expireAfterWriteNanos, long expireAfterAccessNanos, int maximumSize,
    int concurrencyLevel, RemovalListener<? super K, ? super V> removalListener,
    ConcurrentMap<K, V> delegate) {
  this.keyStrength = keyStrength;
  this.valueStrength = valueStrength;
  this.keyEquivalence = keyEquivalence;
  this.valueEquivalence = valueEquivalence;
  this.expireAfterWriteNanos = expireAfterWriteNanos;
  this.expireAfterAccessNanos = expireAfterAccessNanos;
  this.maximumSize = maximumSize;
  this.concurrencyLevel = concurrencyLevel;
  this.removalListener = removalListener;
  this.delegate = delegate;
}
项目:My-Wallet-Android    文件:MapMakerInternalMap.java   
AbstractSerializationProxy(Strength keyStrength, Strength valueStrength,
    Equivalence<Object> keyEquivalence, Equivalence<Object> valueEquivalence,
    long expireAfterWriteNanos, long expireAfterAccessNanos, int maximumSize,
    int concurrencyLevel, RemovalListener<? super K, ? super V> removalListener,
    ConcurrentMap<K, V> delegate) {
  this.keyStrength = keyStrength;
  this.valueStrength = valueStrength;
  this.keyEquivalence = keyEquivalence;
  this.valueEquivalence = valueEquivalence;
  this.expireAfterWriteNanos = expireAfterWriteNanos;
  this.expireAfterAccessNanos = expireAfterAccessNanos;
  this.maximumSize = maximumSize;
  this.concurrencyLevel = concurrencyLevel;
  this.removalListener = removalListener;
  this.delegate = delegate;
}
项目:cnGuava    文件:MapMakerInternalMap.java   
AbstractSerializationProxy(Strength keyStrength, Strength valueStrength,
    Equivalence<Object> keyEquivalence, Equivalence<Object> valueEquivalence,
    long expireAfterWriteNanos, long expireAfterAccessNanos, int maximumSize,
    int concurrencyLevel, RemovalListener<? super K, ? super V> removalListener,
    ConcurrentMap<K, V> delegate) {
  this.keyStrength = keyStrength;
  this.valueStrength = valueStrength;
  this.keyEquivalence = keyEquivalence;
  this.valueEquivalence = valueEquivalence;
  this.expireAfterWriteNanos = expireAfterWriteNanos;
  this.expireAfterAccessNanos = expireAfterAccessNanos;
  this.maximumSize = maximumSize;
  this.concurrencyLevel = concurrencyLevel;
  this.removalListener = removalListener;
  this.delegate = delegate;
}
项目:otter    文件:OtterMigrateMap.java   
@SuppressWarnings("deprecation")
public static <K, V> ConcurrentMap<K, V> makeSoftValueComputingMapWithRemoveListenr(MapMaker maker,
                                                                                    Function<? super K, ? extends V> computingFunction,
                                                                                    final OtterRemovalListener listener) {
    return maker.softValues().removalListener(new RemovalListener<K, V>() {

        @Override
        public void onRemoval(RemovalNotification<K, V> notification) {
            if (notification == null) {
                return;
            }

            listener.onRemoval(notification.getKey(), notification.getValue());
        }
    }).makeComputingMap(computingFunction);
}
项目:org.openntf.domino    文件:MapMakerInternalMap.java   
AbstractSerializationProxy(Strength keyStrength, Strength valueStrength,
    Equivalence<Object> keyEquivalence, Equivalence<Object> valueEquivalence,
    long expireAfterWriteNanos, long expireAfterAccessNanos, int maximumSize,
    int concurrencyLevel, RemovalListener<? super K, ? super V> removalListener,
    ConcurrentMap<K, V> delegate) {
  this.keyStrength = keyStrength;
  this.valueStrength = valueStrength;
  this.keyEquivalence = keyEquivalence;
  this.valueEquivalence = valueEquivalence;
  this.expireAfterWriteNanos = expireAfterWriteNanos;
  this.expireAfterAccessNanos = expireAfterAccessNanos;
  this.maximumSize = maximumSize;
  this.concurrencyLevel = concurrencyLevel;
  this.removalListener = removalListener;
  this.delegate = delegate;
}
项目:bts    文件:MapMakerInternalMap.java   
SerializationProxy(Strength keyStrength, Strength valueStrength,
    Equivalence<Object> keyEquivalence, Equivalence<Object> valueEquivalence,
    long expireAfterWriteNanos, long expireAfterAccessNanos, int maximumSize,
    int concurrencyLevel, RemovalListener<? super K, ? super V> removalListener,
    ConcurrentMap<K, V> delegate) {
  super(keyStrength, valueStrength, keyEquivalence, valueEquivalence, expireAfterWriteNanos,
      expireAfterAccessNanos, maximumSize, concurrencyLevel, removalListener, delegate);
}
项目:bts    文件:ComputingConcurrentHashMap.java   
ComputingSerializationProxy(Strength keyStrength, Strength valueStrength,
    Equivalence<Object> keyEquivalence, Equivalence<Object> valueEquivalence,
    long expireAfterWriteNanos, long expireAfterAccessNanos, int maximumSize,
    int concurrencyLevel, RemovalListener<? super K, ? super V> removalListener,
    ConcurrentMap<K, V> delegate, Function<? super K, ? extends V> computingFunction) {
  super(keyStrength, valueStrength, keyEquivalence, valueEquivalence, expireAfterWriteNanos,
      expireAfterAccessNanos, maximumSize, concurrencyLevel, removalListener, delegate);
  this.computingFunction = computingFunction;
}
项目:guava-libraries    文件:MapMakerInternalMap.java   
SerializationProxy(Strength keyStrength, Strength valueStrength,
    Equivalence<Object> keyEquivalence, Equivalence<Object> valueEquivalence,
    long expireAfterWriteNanos, long expireAfterAccessNanos, int maximumSize,
    int concurrencyLevel, RemovalListener<? super K, ? super V> removalListener,
    ConcurrentMap<K, V> delegate) {
  super(keyStrength, valueStrength, keyEquivalence, valueEquivalence, expireAfterWriteNanos,
      expireAfterAccessNanos, maximumSize, concurrencyLevel, removalListener, delegate);
}
项目:guava-libraries    文件:ComputingConcurrentHashMap.java   
ComputingSerializationProxy(Strength keyStrength, Strength valueStrength,
    Equivalence<Object> keyEquivalence, Equivalence<Object> valueEquivalence,
    long expireAfterWriteNanos, long expireAfterAccessNanos, int maximumSize,
    int concurrencyLevel, RemovalListener<? super K, ? super V> removalListener,
    ConcurrentMap<K, V> delegate, Function<? super K, ? extends V> computingFunction) {
  super(keyStrength, valueStrength, keyEquivalence, valueEquivalence, expireAfterWriteNanos,
      expireAfterAccessNanos, maximumSize, concurrencyLevel, removalListener, delegate);
  this.computingFunction = computingFunction;
}
项目:guava-libraries    文件:MapMakerInternalMapTest.java   
public void testSetRemovalListener() {
  RemovalListener<Object, Object> testListener = new RemovalListener<Object, Object>() {
    @Override
    public void onRemoval(RemovalNotification<Object, Object> notification) {}
  };
  MapMakerInternalMap<Object, Object> map =
      makeMap(createMapMaker().removalListener(testListener));
  assertSame(testListener, map.removalListener);
}
项目:VectorAttackScanner    文件:MapMakerInternalMap.java   
SerializationProxy(Strength keyStrength, Strength valueStrength,
    Equivalence<Object> keyEquivalence, Equivalence<Object> valueEquivalence,
    long expireAfterWriteNanos, long expireAfterAccessNanos, int maximumSize,
    int concurrencyLevel, RemovalListener<? super K, ? super V> removalListener,
    ConcurrentMap<K, V> delegate) {
  super(keyStrength, valueStrength, keyEquivalence, valueEquivalence, expireAfterWriteNanos,
      expireAfterAccessNanos, maximumSize, concurrencyLevel, removalListener, delegate);
}
项目:VectorAttackScanner    文件:ComputingConcurrentHashMap.java   
ComputingSerializationProxy(Strength keyStrength, Strength valueStrength,
    Equivalence<Object> keyEquivalence, Equivalence<Object> valueEquivalence,
    long expireAfterWriteNanos, long expireAfterAccessNanos, int maximumSize,
    int concurrencyLevel, RemovalListener<? super K, ? super V> removalListener,
    ConcurrentMap<K, V> delegate, Function<? super K, ? extends V> computingFunction) {
  super(keyStrength, valueStrength, keyEquivalence, valueEquivalence, expireAfterWriteNanos,
      expireAfterAccessNanos, maximumSize, concurrencyLevel, removalListener, delegate);
  this.computingFunction = computingFunction;
}
项目:My-Wallet-Android    文件:MapMakerInternalMap.java   
SerializationProxy(Strength keyStrength, Strength valueStrength,
    Equivalence<Object> keyEquivalence, Equivalence<Object> valueEquivalence,
    long expireAfterWriteNanos, long expireAfterAccessNanos, int maximumSize,
    int concurrencyLevel, RemovalListener<? super K, ? super V> removalListener,
    ConcurrentMap<K, V> delegate) {
  super(keyStrength, valueStrength, keyEquivalence, valueEquivalence, expireAfterWriteNanos,
      expireAfterAccessNanos, maximumSize, concurrencyLevel, removalListener, delegate);
}
项目:My-Wallet-Android    文件:ComputingConcurrentHashMap.java   
ComputingSerializationProxy(Strength keyStrength, Strength valueStrength,
    Equivalence<Object> keyEquivalence, Equivalence<Object> valueEquivalence,
    long expireAfterWriteNanos, long expireAfterAccessNanos, int maximumSize,
    int concurrencyLevel, RemovalListener<? super K, ? super V> removalListener,
    ConcurrentMap<K, V> delegate, Function<? super K, ? extends V> computingFunction) {
  super(keyStrength, valueStrength, keyEquivalence, valueEquivalence, expireAfterWriteNanos,
      expireAfterAccessNanos, maximumSize, concurrencyLevel, removalListener, delegate);
  this.computingFunction = computingFunction;
}
项目:cnGuava    文件:MapMakerInternalMap.java   
SerializationProxy(Strength keyStrength, Strength valueStrength,
    Equivalence<Object> keyEquivalence, Equivalence<Object> valueEquivalence,
    long expireAfterWriteNanos, long expireAfterAccessNanos, int maximumSize,
    int concurrencyLevel, RemovalListener<? super K, ? super V> removalListener,
    ConcurrentMap<K, V> delegate) {
  super(keyStrength, valueStrength, keyEquivalence, valueEquivalence, expireAfterWriteNanos,
      expireAfterAccessNanos, maximumSize, concurrencyLevel, removalListener, delegate);
}
项目:cnGuava    文件:ComputingConcurrentHashMap.java   
ComputingSerializationProxy(Strength keyStrength, Strength valueStrength,
    Equivalence<Object> keyEquivalence, Equivalence<Object> valueEquivalence,
    long expireAfterWriteNanos, long expireAfterAccessNanos, int maximumSize,
    int concurrencyLevel, RemovalListener<? super K, ? super V> removalListener,
    ConcurrentMap<K, V> delegate, Function<? super K, ? extends V> computingFunction) {
  super(keyStrength, valueStrength, keyEquivalence, valueEquivalence, expireAfterWriteNanos,
      expireAfterAccessNanos, maximumSize, concurrencyLevel, removalListener, delegate);
  this.computingFunction = computingFunction;
}
项目:otter    文件:OtterMigrateMap.java   
@SuppressWarnings("deprecation")
public static <K, V> ConcurrentMap<K, V> makeSoftValueComputingMapWithRemoveListenr(Function<? super K, ? extends V> computingFunction,
                                                                                    final OtterRemovalListener<K, V> listener) {
    return new MapMaker().softValues().removalListener(new RemovalListener<K, V>() {

        @Override
        public void onRemoval(RemovalNotification<K, V> notification) {
            if (notification == null) {
                return;
            }

            listener.onRemoval(notification.getKey(), notification.getValue());
        }
    }).makeComputingMap(computingFunction);
}
项目:org.openntf.domino    文件:MapMakerInternalMap.java   
SerializationProxy(Strength keyStrength, Strength valueStrength,
    Equivalence<Object> keyEquivalence, Equivalence<Object> valueEquivalence,
    long expireAfterWriteNanos, long expireAfterAccessNanos, int maximumSize,
    int concurrencyLevel, RemovalListener<? super K, ? super V> removalListener,
    ConcurrentMap<K, V> delegate) {
  super(keyStrength, valueStrength, keyEquivalence, valueEquivalence, expireAfterWriteNanos,
      expireAfterAccessNanos, maximumSize, concurrencyLevel, removalListener, delegate);
}
项目:org.openntf.domino    文件:ComputingConcurrentHashMap.java   
ComputingSerializationProxy(Strength keyStrength, Strength valueStrength,
    Equivalence<Object> keyEquivalence, Equivalence<Object> valueEquivalence,
    long expireAfterWriteNanos, long expireAfterAccessNanos, int maximumSize,
    int concurrencyLevel, RemovalListener<? super K, ? super V> removalListener,
    ConcurrentMap<K, V> delegate, Function<? super K, ? extends V> computingFunction) {
  super(keyStrength, valueStrength, keyEquivalence, valueEquivalence, expireAfterWriteNanos,
      expireAfterAccessNanos, maximumSize, concurrencyLevel, removalListener, delegate);
  this.computingFunction = computingFunction;
}
项目:bts    文件:GenericMapMaker.java   
@SuppressWarnings("unchecked") // safe covariant cast
@GwtIncompatible("To be supported")
<K extends K0, V extends V0> RemovalListener<K, V> getRemovalListener() {
  return (RemovalListener<K, V>) Objects.firstNonNull(removalListener, NullListener.INSTANCE);
}
项目:j2objc    文件:GenericMapMaker.java   
@SuppressWarnings("unchecked") // safe covariant cast
@GwtIncompatible("To be supported")
<K extends K0, V extends V0> RemovalListener<K, V> getRemovalListener() {
  return (RemovalListener<K, V>) Objects.firstNonNull(removalListener, NullListener.INSTANCE);
}
项目:guava-libraries    文件:GenericMapMaker.java   
@SuppressWarnings("unchecked") // safe covariant cast
@GwtIncompatible("To be supported")
<K extends K0, V extends V0> RemovalListener<K, V> getRemovalListener() {
  return (RemovalListener<K, V>) MoreObjects.firstNonNull(removalListener, NullListener.INSTANCE);
}
项目:VectorAttackScanner    文件:GenericMapMaker.java   
@SuppressWarnings("unchecked") // safe covariant cast
@GwtIncompatible("To be supported")
<K extends K0, V extends V0> RemovalListener<K, V> getRemovalListener() {
  return (RemovalListener<K, V>) MoreObjects.firstNonNull(removalListener, NullListener.INSTANCE);
}
项目:My-Wallet-Android    文件:GenericMapMaker.java   
@SuppressWarnings("unchecked") // safe covariant cast
@GwtIncompatible("To be supported")
<K extends K0, V extends V0> RemovalListener<K, V> getRemovalListener() {
  return (RemovalListener<K, V>) Objects.firstNonNull(removalListener, NullListener.INSTANCE);
}
项目:cnGuava    文件:GenericMapMaker.java   
@SuppressWarnings("unchecked") // safe covariant cast
@GwtIncompatible("To be supported")
<K extends K0, V extends V0> RemovalListener<K, V> getRemovalListener() {
  return (RemovalListener<K, V>) Objects.firstNonNull(removalListener, NullListener.INSTANCE);
}
项目:org.openntf.domino    文件:GenericMapMaker.java   
@SuppressWarnings("unchecked") // safe covariant cast
@GwtIncompatible("To be supported")
<K extends K0, V extends V0> RemovalListener<K, V> getRemovalListener() {
  return (RemovalListener<K, V>) MoreObjects.firstNonNull(removalListener, NullListener.INSTANCE);
}