@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. |
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.Copyright © 2023. All Rights Reserved.