
eu.cedarsoft.utils.ParentCache Maven / Gradle / Ivy
The newest version!
package eu.cedarsoft.utils;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
import java.lang.ref.WeakReference;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.Map;
import java.util.WeakHashMap;
/**
* Stores the parent of children (and their indicies) in weak maps.
*/
public class ParentCache {
/**
* The child is the key, the parent the value
*/
@NotNull
private final Map
© 2015 - 2025 Weber Informatics LLC | Privacy Policy