V
- The type of the token used for deciding on method equality.@HashCodeAndEqualsPlugin.Enhance protected static class MethodGraph.Compiler.Default.Key.Store<V> extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
protected static interface |
MethodGraph.Compiler.Default.Key.Store.Entry<W>
An entry of a key store.
|
protected static class |
MethodGraph.Compiler.Default.Key.Store.Graph
A graph implementation based on a key store.
|
Modifier and Type | Field and Description |
---|---|
private java.util.LinkedHashMap<MethodGraph.Compiler.Default.Key.Harmonized<V>,MethodGraph.Compiler.Default.Key.Store.Entry<V>> |
entries
A mapping of harmonized keys to their represented entry.
|
Modifier | Constructor and Description |
---|---|
protected |
Store()
Creates an empty store.
|
private |
Store(java.util.LinkedHashMap<MethodGraph.Compiler.Default.Key.Harmonized<V>,MethodGraph.Compiler.Default.Key.Store.Entry<V>> entries)
Creates a new store representing the given entries.
|
private final java.util.LinkedHashMap<MethodGraph.Compiler.Default.Key.Harmonized<V>,MethodGraph.Compiler.Default.Key.Store.Entry<V>> entries
protected Store()
private Store(java.util.LinkedHashMap<MethodGraph.Compiler.Default.Key.Harmonized<V>,MethodGraph.Compiler.Default.Key.Store.Entry<V>> entries)
entries
- A mapping of harmonized keys to their represented entry.private static <W> MethodGraph.Compiler.Default.Key.Store.Entry<W> combine(MethodGraph.Compiler.Default.Key.Store.Entry<W> left, MethodGraph.Compiler.Default.Key.Store.Entry<W> right)
W
- The type of the harmonized key of both stores.left
- The left store to be combined.right
- The right store to be combined.protected MethodGraph.Compiler.Default.Key.Store<V> registerTopLevel(java.util.List<? extends MethodDescription> methodDescriptions, MethodGraph.Compiler.Default.Harmonizer<V> harmonizer)
methodDescriptions
- The methods to register.harmonizer
- The harmonizer to use for determining method equality.protected MethodGraph.Compiler.Default.Key.Store<V> combineWith(MethodGraph.Compiler.Default.Key.Store<V> store)
store
- The store to combine with this store.protected MethodGraph.Compiler.Default.Key.Store<V> inject(MethodGraph.Compiler.Default.Key.Store<V> store)
store
- The key store to inject into this store.protected MethodGraph asGraph(MethodGraph.Compiler.Default.Merger merger)
merger
- The merger to apply for resolving the representative for ambiguous resolutions.