Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
com.github.benmanes.caffeine.cache.NodeFactory Maven / Gradle / Ivy
// Copyright 2016 Ben Manes. All Rights Reserved.
package com.github.benmanes.caffeine.cache;
import com.github.benmanes.caffeine.base.UnsafeAccess;
import com.github.benmanes.caffeine.cache.References.LookupKeyReference;
import com.github.benmanes.caffeine.cache.References.SoftValueReference;
import com.github.benmanes.caffeine.cache.References.WeakKeyReference;
import com.github.benmanes.caffeine.cache.References.WeakValueReference;
import java.lang.Object;
import java.lang.String;
import java.lang.StringBuilder;
import java.lang.SuppressWarnings;
import java.lang.ref.Reference;
import java.lang.ref.ReferenceQueue;
import java.util.Objects;
/**
* WARNING: GENERATED CODE
*
* A factory for cache nodes optimized for a particular configuration.
*
* @author [email protected] (Ben Manes)
*/
@SuppressWarnings({"unchecked", "PMD", "GuardedByChecker", "MissingOverride"})
enum NodeFactory {
SSo {
Node newNode(K key, ReferenceQueue keyReferenceQueue, V value, ReferenceQueue valueReferenceQueue, int weight, long now) {
return new SSo<>(key, keyReferenceQueue, value, valueReferenceQueue, weight, now);
}
Node newNode(Object keyReference, V value, ReferenceQueue valueReferenceQueue, int weight, long now) {
return new SSo<>(keyReference, value, valueReferenceQueue, weight, now);
}
},
SSoA {
Node newNode(K key, ReferenceQueue keyReferenceQueue, V value, ReferenceQueue valueReferenceQueue, int weight, long now) {
return new SSoA<>(key, keyReferenceQueue, value, valueReferenceQueue, weight, now);
}
Node newNode(Object keyReference, V value, ReferenceQueue valueReferenceQueue, int weight, long now) {
return new SSoA<>(keyReference, value, valueReferenceQueue, weight, now);
}
},
SSoAMS {
Node newNode(K key, ReferenceQueue keyReferenceQueue, V value, ReferenceQueue valueReferenceQueue, int weight, long now) {
return new SSoAMS<>(key, keyReferenceQueue, value, valueReferenceQueue, weight, now);
}
Node newNode(Object keyReference, V value, ReferenceQueue valueReferenceQueue, int weight, long now) {
return new SSoAMS<>(keyReference, value, valueReferenceQueue, weight, now);
}
},
SSoAMW {
Node newNode(K key, ReferenceQueue keyReferenceQueue, V value, ReferenceQueue valueReferenceQueue, int weight, long now) {
return new SSoAMW<>(key, keyReferenceQueue, value, valueReferenceQueue, weight, now);
}
Node newNode(Object keyReference, V value, ReferenceQueue valueReferenceQueue, int weight, long now) {
return new SSoAMW<>(keyReference, value, valueReferenceQueue, weight, now);
}
},
SSoAR {
Node newNode(K key, ReferenceQueue keyReferenceQueue, V value, ReferenceQueue valueReferenceQueue, int weight, long now) {
return new SSoAR<>(key, keyReferenceQueue, value, valueReferenceQueue, weight, now);
}
Node newNode(Object keyReference, V value, ReferenceQueue valueReferenceQueue, int weight, long now) {
return new SSoAR<>(keyReference, value, valueReferenceQueue, weight, now);
}
},
SSoARMS {
Node newNode(K key, ReferenceQueue keyReferenceQueue, V value, ReferenceQueue valueReferenceQueue, int weight, long now) {
return new SSoARMS<>(key, keyReferenceQueue, value, valueReferenceQueue, weight, now);
}
Node newNode(Object keyReference, V value, ReferenceQueue valueReferenceQueue, int weight, long now) {
return new SSoARMS<>(keyReference, value, valueReferenceQueue, weight, now);
}
},
SSoARMW {
Node newNode(K key, ReferenceQueue keyReferenceQueue, V value, ReferenceQueue valueReferenceQueue, int weight, long now) {
return new SSoARMW<>(key, keyReferenceQueue, value, valueReferenceQueue, weight, now);
}
Node newNode(Object keyReference, V value, ReferenceQueue valueReferenceQueue, int weight, long now) {
return new SSoARMW<>(keyReference, value, valueReferenceQueue, weight, now);
}
},
SSoAW {
Node newNode(K key, ReferenceQueue keyReferenceQueue, V value, ReferenceQueue valueReferenceQueue, int weight, long now) {
return new SSoAW<>(key, keyReferenceQueue, value, valueReferenceQueue, weight, now);
}
Node newNode(Object keyReference, V value, ReferenceQueue valueReferenceQueue, int weight, long now) {
return new SSoAW<>(keyReference, value, valueReferenceQueue, weight, now);
}
},
SSoAWMS {
Node newNode(K key, ReferenceQueue keyReferenceQueue, V value, ReferenceQueue valueReferenceQueue, int weight, long now) {
return new SSoAWMS<>(key, keyReferenceQueue, value, valueReferenceQueue, weight, now);
}
Node newNode(Object keyReference, V value, ReferenceQueue valueReferenceQueue, int weight, long now) {
return new SSoAWMS<>(keyReference, value, valueReferenceQueue, weight, now);
}
},
SSoAWMW {
Node newNode(K key, ReferenceQueue keyReferenceQueue, V value, ReferenceQueue valueReferenceQueue, int weight, long now) {
return new SSoAWMW<>(key, keyReferenceQueue, value, valueReferenceQueue, weight, now);
}
Node newNode(Object keyReference, V value, ReferenceQueue valueReferenceQueue, int weight, long now) {
return new SSoAWMW<>(keyReference, value, valueReferenceQueue, weight, now);
}
},
SSoAWR {
Node newNode(K key, ReferenceQueue keyReferenceQueue, V value, ReferenceQueue valueReferenceQueue, int weight, long now) {
return new SSoAWR<>(key, keyReferenceQueue, value, valueReferenceQueue, weight, now);
}
Node newNode(Object keyReference, V value, ReferenceQueue valueReferenceQueue, int weight, long now) {
return new SSoAWR<>(keyReference, value, valueReferenceQueue, weight, now);
}
},
SSoAWRMS {
Node newNode(K key, ReferenceQueue keyReferenceQueue, V value, ReferenceQueue valueReferenceQueue, int weight, long now) {
return new SSoAWRMS<>(key, keyReferenceQueue, value, valueReferenceQueue, weight, now);
}
Node newNode(Object keyReference, V value, ReferenceQueue valueReferenceQueue, int weight, long now) {
return new SSoAWRMS<>(keyReference, value, valueReferenceQueue, weight, now);
}
},
SSoAWRMW {
Node newNode(K key, ReferenceQueue keyReferenceQueue, V value, ReferenceQueue valueReferenceQueue, int weight, long now) {
return new SSoAWRMW<>(key, keyReferenceQueue, value, valueReferenceQueue, weight, now);
}
Node newNode(Object keyReference, V value, ReferenceQueue valueReferenceQueue, int weight, long now) {
return new SSoAWRMW<>(keyReference, value, valueReferenceQueue, weight, now);
}
},
SSoMS {
Node newNode(K key, ReferenceQueue keyReferenceQueue, V value, ReferenceQueue valueReferenceQueue, int weight, long now) {
return new SSoMS<>(key, keyReferenceQueue, value, valueReferenceQueue, weight, now);
}
Node newNode(Object keyReference, V value, ReferenceQueue valueReferenceQueue, int weight, long now) {
return new SSoMS<>(keyReference, value, valueReferenceQueue, weight, now);
}
},
SSoMW {
Node newNode(K key, ReferenceQueue keyReferenceQueue, V value, ReferenceQueue valueReferenceQueue, int weight, long now) {
return new SSoMW<>(key, keyReferenceQueue, value, valueReferenceQueue, weight, now);
}
Node newNode(Object keyReference, V value, ReferenceQueue valueReferenceQueue, int weight, long now) {
return new SSoMW<>(keyReference, value, valueReferenceQueue, weight, now);
}
},
SSoR {
Node newNode(K key, ReferenceQueue keyReferenceQueue, V value, ReferenceQueue valueReferenceQueue, int weight, long now) {
return new SSoR<>(key, keyReferenceQueue, value, valueReferenceQueue, weight, now);
}
Node newNode(Object keyReference, V value, ReferenceQueue valueReferenceQueue, int weight, long now) {
return new SSoR<>(keyReference, value, valueReferenceQueue, weight, now);
}
},
SSoRMS {
Node newNode(K key, ReferenceQueue keyReferenceQueue, V value, ReferenceQueue valueReferenceQueue, int weight, long now) {
return new SSoRMS<>(key, keyReferenceQueue, value, valueReferenceQueue, weight, now);
}
Node newNode(Object keyReference, V value, ReferenceQueue valueReferenceQueue, int weight, long now) {
return new SSoRMS<>(keyReference, value, valueReferenceQueue, weight, now);
}
},
SSoRMW {
Node newNode(K key, ReferenceQueue keyReferenceQueue, V value, ReferenceQueue valueReferenceQueue, int weight, long now) {
return new SSoRMW<>(key, keyReferenceQueue, value, valueReferenceQueue, weight, now);
}
Node newNode(Object keyReference, V value, ReferenceQueue valueReferenceQueue, int weight, long now) {
return new SSoRMW<>(keyReference, value, valueReferenceQueue, weight, now);
}
},
SSoW {
Node newNode(K key, ReferenceQueue keyReferenceQueue, V value, ReferenceQueue valueReferenceQueue, int weight, long now) {
return new SSoW<>(key, keyReferenceQueue, value, valueReferenceQueue, weight, now);
}
Node newNode(Object keyReference, V value, ReferenceQueue valueReferenceQueue, int weight, long now) {
return new SSoW<>(keyReference, value, valueReferenceQueue, weight, now);
}
},
SSoWMS {
Node newNode(K key, ReferenceQueue keyReferenceQueue, V value, ReferenceQueue valueReferenceQueue, int weight, long now) {
return new SSoWMS<>(key, keyReferenceQueue, value, valueReferenceQueue, weight, now);
}
Node newNode(Object keyReference, V value, ReferenceQueue valueReferenceQueue, int weight, long now) {
return new SSoWMS<>(keyReference, value, valueReferenceQueue, weight, now);
}
},
SSoWMW {
Node newNode(K key, ReferenceQueue keyReferenceQueue, V value, ReferenceQueue valueReferenceQueue, int weight, long now) {
return new SSoWMW<>(key, keyReferenceQueue, value, valueReferenceQueue, weight, now);
}
Node newNode(Object keyReference, V value, ReferenceQueue valueReferenceQueue, int weight, long now) {
return new SSoWMW<>(keyReference, value, valueReferenceQueue, weight, now);
}
},
SSoWR {
Node newNode(K key, ReferenceQueue keyReferenceQueue, V value, ReferenceQueue valueReferenceQueue, int weight, long now) {
return new SSoWR<>(key, keyReferenceQueue, value, valueReferenceQueue, weight, now);
}
Node newNode(Object keyReference, V value, ReferenceQueue valueReferenceQueue, int weight, long now) {
return new SSoWR<>(keyReference, value, valueReferenceQueue, weight, now);
}
},
SSoWRMS {
Node newNode(K key, ReferenceQueue keyReferenceQueue, V value, ReferenceQueue valueReferenceQueue, int weight, long now) {
return new SSoWRMS<>(key, keyReferenceQueue, value, valueReferenceQueue, weight, now);
}
Node newNode(Object keyReference, V value, ReferenceQueue valueReferenceQueue, int weight, long now) {
return new SSoWRMS<>(keyReference, value, valueReferenceQueue, weight, now);
}
},
SSoWRMW {
Node newNode(K key, ReferenceQueue keyReferenceQueue, V value, ReferenceQueue valueReferenceQueue, int weight, long now) {
return new SSoWRMW<>(key, keyReferenceQueue, value, valueReferenceQueue, weight, now);
}
Node newNode(Object keyReference, V value, ReferenceQueue valueReferenceQueue, int weight, long now) {
return new SSoWRMW<>(keyReference, value, valueReferenceQueue, weight, now);
}
},
SSt {
Node newNode(K key, ReferenceQueue keyReferenceQueue, V value, ReferenceQueue valueReferenceQueue, int weight, long now) {
return new SSt<>(key, keyReferenceQueue, value, valueReferenceQueue, weight, now);
}
Node newNode(Object keyReference, V value, ReferenceQueue valueReferenceQueue, int weight, long now) {
return new SSt<>(keyReference, value, valueReferenceQueue, weight, now);
}
},
SStA {
Node newNode(K key, ReferenceQueue keyReferenceQueue, V value, ReferenceQueue valueReferenceQueue, int weight, long now) {
return new SStA<>(key, keyReferenceQueue, value, valueReferenceQueue, weight, now);
}
Node newNode(Object keyReference, V value, ReferenceQueue valueReferenceQueue, int weight, long now) {
return new SStA<>(keyReference, value, valueReferenceQueue, weight, now);
}
},
SStAMS {
Node newNode(K key, ReferenceQueue keyReferenceQueue, V value, ReferenceQueue valueReferenceQueue, int weight, long now) {
return new SStAMS<>(key, keyReferenceQueue, value, valueReferenceQueue, weight, now);
}
Node newNode(Object keyReference, V value, ReferenceQueue valueReferenceQueue, int weight, long now) {
return new SStAMS<>(keyReference, value, valueReferenceQueue, weight, now);
}
},
SStAMW {
Node newNode(K key, ReferenceQueue keyReferenceQueue, V value, ReferenceQueue valueReferenceQueue, int weight, long now) {
return new SStAMW<>(key, keyReferenceQueue, value, valueReferenceQueue, weight, now);
}
Node newNode(Object keyReference, V value, ReferenceQueue valueReferenceQueue, int weight, long now) {
return new SStAMW<>(keyReference, value, valueReferenceQueue, weight, now);
}
},
SStAR {
Node newNode(K key, ReferenceQueue keyReferenceQueue, V value, ReferenceQueue valueReferenceQueue, int weight, long now) {
return new SStAR<>(key, keyReferenceQueue, value, valueReferenceQueue, weight, now);
}
Node newNode(Object keyReference, V value, ReferenceQueue valueReferenceQueue, int weight, long now) {
return new SStAR<>(keyReference, value, valueReferenceQueue, weight, now);
}
},
SStARMS {
Node newNode(K key, ReferenceQueue keyReferenceQueue, V value, ReferenceQueue valueReferenceQueue, int weight, long now) {
return new SStARMS<>(key, keyReferenceQueue, value, valueReferenceQueue, weight, now);
}
Node newNode(Object keyReference, V value, ReferenceQueue valueReferenceQueue, int weight, long now) {
return new SStARMS<>(keyReference, value, valueReferenceQueue, weight, now);
}
},
SStARMW {
Node newNode(K key, ReferenceQueue keyReferenceQueue, V value, ReferenceQueue valueReferenceQueue, int weight, long now) {
return new SStARMW<>(key, keyReferenceQueue, value, valueReferenceQueue, weight, now);
}
Node newNode(Object keyReference, V value, ReferenceQueue valueReferenceQueue, int weight, long now) {
return new SStARMW<>(keyReference, value, valueReferenceQueue, weight, now);
}
},
SStAW {
Node newNode(K key, ReferenceQueue keyReferenceQueue, V value, ReferenceQueue valueReferenceQueue, int weight, long now) {
return new SStAW<>(key, keyReferenceQueue, value, valueReferenceQueue, weight, now);
}
Node newNode(Object keyReference, V value, ReferenceQueue valueReferenceQueue, int weight, long now) {
return new SStAW<>(keyReference, value, valueReferenceQueue, weight, now);
}
},
SStAWMS {
Node newNode(K key, ReferenceQueue keyReferenceQueue, V value, ReferenceQueue valueReferenceQueue, int weight, long now) {
return new SStAWMS<>(key, keyReferenceQueue, value, valueReferenceQueue, weight, now);
}
Node newNode(Object keyReference, V value, ReferenceQueue valueReferenceQueue, int weight, long now) {
return new SStAWMS<>(keyReference, value, valueReferenceQueue, weight, now);
}
},
SStAWMW {
Node newNode(K key, ReferenceQueue keyReferenceQueue, V value, ReferenceQueue valueReferenceQueue, int weight, long now) {
return new SStAWMW<>(key, keyReferenceQueue, value, valueReferenceQueue, weight, now);
}
Node newNode(Object keyReference, V value, ReferenceQueue valueReferenceQueue, int weight, long now) {
return new SStAWMW<>(keyReference, value, valueReferenceQueue, weight, now);
}
},
SStAWR {
Node newNode(K key, ReferenceQueue keyReferenceQueue, V value, ReferenceQueue valueReferenceQueue, int weight, long now) {
return new SStAWR<>(key, keyReferenceQueue, value, valueReferenceQueue, weight, now);
}
Node newNode(Object keyReference, V value, ReferenceQueue valueReferenceQueue, int weight, long now) {
return new SStAWR<>(keyReference, value, valueReferenceQueue, weight, now);
}
},
SStAWRMS {
Node newNode(K key, ReferenceQueue keyReferenceQueue, V value, ReferenceQueue valueReferenceQueue, int weight, long now) {
return new SStAWRMS<>(key, keyReferenceQueue, value, valueReferenceQueue, weight, now);
}
Node