@ThreadSafe public final class Hash extends Object
Constructor and Description |
---|
Hash(java.util.function.Supplier<java.util.stream.Stream<byte[]>> properties) |
Modifier and Type | Method and Description |
---|---|
String |
get()
If
markOutdated() is called since last get() , then the version will be
recomputed, otherwise, the internally cached version is returned. |
long |
getLastUpdateTime() |
void |
markOutdated()
Called when the version needs to be updated.
|
public Hash(java.util.function.Supplier<java.util.stream.Stream<byte[]>> properties)
properties
- a stream of encoded propertiespublic void markOutdated()
get()
is called.public String get()
markOutdated()
is called since last get()
, then the version will be
recomputed, otherwise, the internally cached version is returned.public long getLastUpdateTime()
Copyright © 2023. All Rights Reserved.