Class CopyOnWriteRef<T>
- java.lang.Object
-
- com.vladsch.flexmark.util.collection.CopyOnWriteRef<T>
-
public class CopyOnWriteRef<T> extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private @NotNull java.util.function.Function<T,T>
copyFunction
private int
referenceCount
private T
value
-
Constructor Summary
Constructors Constructor Description CopyOnWriteRef(T value, @NotNull java.util.function.Function<T,T> copyFunction)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description T
getImmutable()
T
getMutable()
T
getPeek()
boolean
isMutable()
void
setValue(T value)
-