
com.vladsch.flexmark.experimental.util.sequence.managed.BaseSequenceManager Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of flexmark-util-experimental Show documentation
Show all versions of flexmark-util-experimental Show documentation
Contains experimental classes that may or may not work in all cases. Use at your own risk.
The newest version!
package com.vladsch.flexmark.experimental.util.sequence.managed;
import com.vladsch.flexmark.util.sequence.BasedSequence;
import com.vladsch.flexmark.util.sequence.SubSequence;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
import java.lang.ref.WeakReference;
import java.util.Map;
import java.util.WeakHashMap;
import java.util.function.Function;
public class BaseSequenceManager {
// NOTE: baseMap will keep reference to BaseSequenceEntry as long as the underlying base object is in use
// baseSet relies on baseMap to keep references alive for used BasedSequence and its BaseSequenceEntry for quick fail/pass on equals
final private @NotNull WeakHashMap
© 2015 - 2025 Weber Informatics LLC | Privacy Policy