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>mapprivate RepositorySystemSessionsession
-
Constructor Summary
Constructors Constructor Description DefaultDependencyGraphTransformationContext(RepositorySystemSession session)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectget(java.lang.Object key)Gets a keyed value from the context.RepositorySystemSessiongetSession()Gets the repository system session during which the graph transformation happens.java.lang.Objectput(java.lang.Object key, java.lang.Object value)Puts a keyed value into the context.java.lang.StringtoString()
-
-
-
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:DependencyGraphTransformationContextGets the repository system session during which the graph transformation happens.- Specified by:
getSessionin interfaceDependencyGraphTransformationContext- Returns:
- The repository system session, never
null.
-
get
public java.lang.Object get(java.lang.Object key)
Description copied from interface:DependencyGraphTransformationContextGets a keyed value from the context.- Specified by:
getin interfaceDependencyGraphTransformationContext- Parameters:
key- The key used to query the value, must not benull.- Returns:
- The queried value or
nullif none.
-
put
public java.lang.Object put(java.lang.Object key, java.lang.Object value)Description copied from interface:DependencyGraphTransformationContextPuts a keyed value into the context.- Specified by:
putin interfaceDependencyGraphTransformationContext- Parameters:
key- The key used to store the value, must not benull.value- The value to store, may benullto remove the mapping.- Returns:
- The previous value associated with the key or
nullif none.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-