Package jodd.util
Class TypeCache.Builder<A>
- java.lang.Object
-
- jodd.util.TypeCache.Builder<A>
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TypeCache<A>get()Builds a type cache.TypeCache.Builder<A>noCache()No cache will be used.TypeCache.Builder<A>threadsafe(boolean threadsafe)Cache will be thread-safe.TypeCache.Builder<A>weak(boolean weak)Cache keys will be weak.
-
-
-
Method Detail
-
noCache
public TypeCache.Builder<A> noCache()
No cache will be used. Setting other properties will not have any affect.
-
weak
public TypeCache.Builder<A> weak(boolean weak)
Cache keys will be weak.
-
threadsafe
public TypeCache.Builder<A> threadsafe(boolean threadsafe)
Cache will be thread-safe.
-
-