-
public interface Option.CacheKeyUpdater<T>An interface that updates a MessageDigest with the given value as part of a process togenerate a disk cache key.
-
-
Method Summary
Modifier and Type Method Description abstract voidupdate(@NonNull() Array<byte> keyBytes, @NonNull() T value, @NonNull() MessageDigest messageDigest)Updates the given MessageDigest with the bytes of the given key (to avoid incidentalvalue collisions when values are not particularly unique) and value. -
-
Method Detail
-
update
abstract void update(@NonNull() Array<byte> keyBytes, @NonNull() T value, @NonNull() MessageDigest messageDigest)
Updates the given MessageDigest with the bytes of the given key (to avoid incidentalvalue collisions when values are not particularly unique) and value.
If your Option shouldn't affect the disk cache key, you should not implement thisclass and use memory or memory instead.
- Parameters:
keyBytes- The bytes of the String used as the key for this particular .value- The value of of this particular option.
-
-
-
-