Class TypeCache.Builder<A>

java.lang.Object
jodd.util.TypeCache.Builder<A>
Enclosing class:
TypeCache<T>

public static class TypeCache.Builder<A> extends Object
  • Field Details

    • threadsafe

      private boolean threadsafe
    • weak

      private boolean weak
    • none

      private boolean none
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • 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.
    • get

      public TypeCache<A> get()
      Builds a type cache.