Class DefaultDependencyGraphTransformationContext
- java.lang.Object
-
- org.eclipse.aether.internal.impl.collect.DefaultDependencyGraphTransformationContext
-
- All Implemented Interfaces:
DependencyGraphTransformationContext
class DefaultDependencyGraphTransformationContext extends java.lang.Object implements DependencyGraphTransformationContext
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.Map<java.lang.Object,java.lang.Object>
map
private RepositorySystemSession
session
-
Constructor Summary
Constructors Constructor Description DefaultDependencyGraphTransformationContext(RepositorySystemSession session)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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()
-
-
-
Field Detail
-
session
private final RepositorySystemSession session
-
map
private final java.util.Map<java.lang.Object,java.lang.Object> map
-
-
Constructor Detail
-
DefaultDependencyGraphTransformationContext
DefaultDependencyGraphTransformationContext(RepositorySystemSession session)
-
-
Method Detail
-
getSession
public RepositorySystemSession getSession()
Description copied from interface:DependencyGraphTransformationContext
Gets the repository system session during which the graph transformation happens.- Specified by:
getSession
in interfaceDependencyGraphTransformationContext
- Returns:
- The repository system session, never
null
.
-
get
public java.lang.Object get(java.lang.Object key)
Description copied from interface:DependencyGraphTransformationContext
Gets a keyed value from the context.- Specified by:
get
in interfaceDependencyGraphTransformationContext
- Parameters:
key
- The key used to query the value, must not benull
.- Returns:
- The queried value or
null
if none.
-
put
public java.lang.Object put(java.lang.Object key, java.lang.Object value)
Description copied from interface:DependencyGraphTransformationContext
Puts a keyed value into the context.- Specified by:
put
in interfaceDependencyGraphTransformationContext
- Parameters:
key
- The key used to store the value, must not benull
.value
- The value to store, may benull
to remove the mapping.- Returns:
- The previous value associated with the key or
null
if none.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-