Class Cache.ObjectAndPathForResources<T,R>

java.lang.Object
org.burningwave.core.Cache.ObjectAndPathForResources<T,R>
Enclosing class:
Cache

public static class Cache.ObjectAndPathForResources<T,R> extends Object
  • Constructor Details

    • ObjectAndPathForResources

      public ObjectAndPathForResources()
    • ObjectAndPathForResources

      public ObjectAndPathForResources(Long partitionStartLevel)
    • ObjectAndPathForResources

      public ObjectAndPathForResources(Long partitionStartLevel, Function<R,R> sharer)
    • ObjectAndPathForResources

      public ObjectAndPathForResources(Long partitionStartLevel, Function<R,R> sharer, BiConsumer<String,R> itemDestroyer)
  • Method Details

    • getOrUploadIfAbsent

      public R getOrUploadIfAbsent(T object, String path, Supplier<R> resourceSupplier)
    • get

      public R get(T object, String path)
    • remove

      public Cache.PathForResources<R> remove(T object, boolean destroyItems)
    • removePath

      public R removePath(T object, String path)
    • removePath

      public R removePath(T object, String path, boolean destroyItem)
    • iterate

      public void iterate(TriConsumer<T,String,R> itemConsumer)
    • iterateParallel

      public void iterateParallel(TriConsumer<T,String,R> itemConsumer)