public class WorkspaceDirUserModuleVersion extends Object implements WorkspaceDir
ModuleVersion.
During a checkout operation, for example, such directories are created for
the user.
Depending on the SCM from which the module comes from, that directory will
generally also be a workspace for module managed by this SCM. For example, if
the module comes from a Git repository, the directory will be a Git clone
of the repository for the module, with the specified version checked out.
This class does not include the plugin that created the workspace directory
since it belongs to the user and any plugin can potentially interact with it
one behalf of the user. However only one SCM plugin will generally interact
with such a workspace directory since it is module specific and one SCM plugin
is associated with a given module.
This class wraps ModuleVersion which already provides the required information
and behavior. But it must implement the marker interface WorkspaceDir, which is
why ModuleVersion is not used directly.| Constructor and Description |
|---|
WorkspaceDirUserModuleVersion(ModuleVersion moduleVersion)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object other)
Override of equals to make to make instances of this class usable as map keys
and in other contexts where value equality semantics are required.
|
ModuleVersion |
getModuleVersion() |
int |
hashCode()
Override of hashCode to make instances of this class usable efficiently as
map keys.
|
String |
toString() |
public WorkspaceDirUserModuleVersion(ModuleVersion moduleVersion)
moduleVersion - ModuleVersion.public ModuleVersion getModuleVersion()
public String toString()
toString in class ObjectWorkspaceDir instance, in logs for
example.public int hashCode()
Copyright © 2015–2017 AZYVA INC.. All rights reserved.