Top Fields Constructors Methods
com.vladsch.flexmark.util.collection

public Class CopyOnWriteRef<T>

extends Object
Class Inheritance
Imports
org.jetbrains.annotations.NotNull, .Nullable, java.util.function.Function

Field Summary

Modifier and TypeField and Description
private final @NotNull Function<T, T>
private int
private T

Constructor Summary

AccessConstructor and Description
public
CopyOnWriteRef(T value, @NotNull Function<T, T> copyFunction)

Method Summary

Modifier and TypeMethod and Description
public T
public T
public T
public boolean
public void
setValue(T value)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

copyFunctionback to summary
private final @NotNull Function<T, T> copyFunction
Annotations
@NotNull
referenceCountback to summary
private int referenceCount
valueback to summary
private T value
Annotations
@Nullable

Constructor Detail

CopyOnWriteRefback to summary
public CopyOnWriteRef(T value, @NotNull Function<T, T> copyFunction)

Method Detail

getImmutableback to summary
public T getImmutable()
Annotations
@Nullable
getMutableback to summary
public T getMutable()
Annotations
@Nullable
getPeekback to summary
public T getPeek()
Annotations
@Nullable
isMutableback to summary
public boolean isMutable()
setValueback to summary
public void setValue(T value)