public class DefaultDependencyGraphTransformationContext extends java.lang.Object implements DependencyGraphTransformationContext
DependencyGraphTransformationContext
.
Internal helper class for collector implementations.Modifier and Type | Field and Description |
---|---|
private java.util.Map<java.lang.Object,java.lang.Object> |
map |
private RepositorySystemSession |
session |
Constructor and Description |
---|
DefaultDependencyGraphTransformationContext(RepositorySystemSession session) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
get(java.lang.Object key)
Gets a keyed value from the context.
|
RepositorySystemSession |
getSession()
Gets the repository system session during which the graph transformation happens.
|
java.lang.Object |
put(java.lang.Object key,
java.lang.Object value)
Puts a keyed value into the context.
|
java.lang.String |
toString() |
private final RepositorySystemSession session
private final java.util.Map<java.lang.Object,java.lang.Object> map
public DefaultDependencyGraphTransformationContext(RepositorySystemSession session)
public RepositorySystemSession getSession()
DependencyGraphTransformationContext
getSession
in interface DependencyGraphTransformationContext
null
.public java.lang.Object get(java.lang.Object key)
DependencyGraphTransformationContext
get
in interface DependencyGraphTransformationContext
key
- The key used to query the value, must not be null
.null
if none.public java.lang.Object put(java.lang.Object key, java.lang.Object value)
DependencyGraphTransformationContext
put
in interface DependencyGraphTransformationContext
key
- The key used to store the value, must not be null
.value
- The value to store, may be null
to remove the mapping.null
if none.public java.lang.String toString()
toString
in class java.lang.Object