public final class CachedGraph<G extends Graph> extends Object
Modifier and Type | Field and Description |
---|---|
private G |
mutableCopy |
private G |
readonlyCopy |
Modifier | Constructor and Description |
---|---|
private |
CachedGraph(G readonlyCopy,
G mutableCopy) |
Modifier and Type | Method and Description |
---|---|
static <G extends Graph> |
fromMutableCopy(G graph) |
static <G extends Graph> |
fromReadonlyCopy(G graph) |
G |
getMutableCopy(Consumer<Map<Node,Node>> duplicationMapCallback) |
G |
getReadonlyCopy() |
boolean |
hasMutableCopy() |
private final G extends Graph readonlyCopy
private G extends Graph mutableCopy
private CachedGraph(G readonlyCopy, G mutableCopy)
public static <G extends Graph> CachedGraph<G> fromReadonlyCopy(G graph)
public static <G extends Graph> CachedGraph<G> fromMutableCopy(G graph)
public G getReadonlyCopy()
public boolean hasMutableCopy()