Interface CacheKey

All Known Subinterfaces:
CacheKey.Key2<K1,K2>, CacheKey.Key3<K1,K2,K3>, CacheKey.Key4<K1,K2,K3,K4>, CacheKey.Key5<K1,K2,K3,K4,K5>, CacheKey.Key6<K1,K2,K3,K4,K5,K6>, CacheKey.Key7<K1,K2,K3,K4,K5,K6,K7>, CacheKey.Key8<K1,K2,K3,K4,K5,K6,K7,K8>, CacheKey.Key9<K1,K2,K3,K4,K5,K6,K7,K8,K9>

public interface CacheKey
Represent CacheKey interface that is used by the implementation that represents method arguments as key for Cache
See Also:
  • Method Details

    • isEmpty

      boolean isEmpty()
      Returns:
      Boolean.TRUE if all sub keys are nullable
    • joined

      @Nonnull String joined()
    • values

      @Nonnull List<Object> values()
      Returns:
      cache key values arguments that are subjected for Cache key
    • of

      @Nonnull static <K1, K2> CacheKey.Key2<K1,K2> of(K1 key1, K2 key2)
    • of

      @Nonnull static <K1, K2, K3> CacheKey.Key3<K1,K2,K3> of(K1 key1, K2 key2, K3 key3)
    • of

      @Nonnull static <K1, K2, K3, K4> CacheKey.Key4<K1,K2,K3,K4> of(K1 key1, K2 key2, K3 key3, K4 key4)
    • of

      @Nonnull static <K1, K2, K3, K4, K5> CacheKey.Key5<K1,K2,K3,K4,K5> of(K1 key1, K2 key2, K3 key3, K4 key4, K5 key5)
    • of

      @Nonnull static <K1, K2, K3, K4, K5, K6> CacheKey.Key6<K1,K2,K3,K4,K5,K6> of(K1 key1, K2 key2, K3 key3, K4 key4, K5 key5, K6 key6)
    • of

      @Nonnull static <K1, K2, K3, K4, K5, K6, K7> CacheKey.Key7<K1,K2,K3,K4,K5,K6,K7> of(K1 key1, K2 key2, K3 key3, K4 key4, K5 key5, K6 key6, K7 key7)
    • of

      @Nonnull static <K1, K2, K3, K4, K5, K6, K7, K8> CacheKey.Key8<K1,K2,K3,K4,K5,K6,K7,K8> of(K1 key1, K2 key2, K3 key3, K4 key4, K5 key5, K6 key6, K7 key7, K8 key8)
    • of

      @Nonnull static <K1, K2, K3, K4, K5, K6, K7, K8, K9> CacheKey.Key9<K1,K2,K3,K4,K5,K6,K7,K8,K9> of(K1 key1, K2 key2, K3 key3, K4 key4, K5 key5, K6 key6, K7 key7, K8 key8, K9 key9)