ClassT
- The type of the actual implementation.ComponentT
- The type of the appended component data.public interface GenericCacheKey<ClassT,ComponentT>
Modifier and Type | Method and Description |
---|---|
ClassT |
append(Iterable<ComponentT> objects)
Appends the given Objects to this instance.
|
List<ComponentT> |
getComponents()
Getter for the list of additional cache key components.
|
io.vavr.control.Option<String> |
getPrincipalId()
Getter for the name of the principal for which the key is used.
|
io.vavr.control.Option<String> |
getTenantId()
Getter for the Id of the tenant for which the key is used.
|
@Nonnull List<ComponentT> getComponents()
@Nonnull io.vavr.control.Option<String> getTenantId()
@Nonnull io.vavr.control.Option<String> getPrincipalId()
@Nonnull ClassT append(@Nonnull Iterable<ComponentT> objects) throws IllegalArgumentException
Object.equals(Object)
and
Object.hashCode()
are used. The given objects must not be null
.objects
- Additional objects that should be used to identify a cache key.IllegalArgumentException
- If any of the given objects is null
.Copyright © 2021 SAP SE. All rights reserved.