Class ComposerDependency


  • @ThreadSafe
    public final class ComposerDependency
    extends java.lang.Object
    Represents a dependency (GAV, right now) from a Composer dependency.
    Author:
    colezlaw
    • Constructor Summary

      Constructors 
      Constructor Description
      ComposerDependency​(java.lang.String group, java.lang.String project, java.lang.String version)
      Create a ComposerDependency from group, project, and version.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object obj)  
      java.lang.String getGroup()
      Get the group.
      java.lang.String getProject()
      Get the project.
      java.lang.String getVersion()
      Get the version.
      int hashCode()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ComposerDependency

        public ComposerDependency​(java.lang.String group,
                                  java.lang.String project,
                                  java.lang.String version)
        Create a ComposerDependency from group, project, and version.
        Parameters:
        group - the group
        project - the project
        version - the version
    • Method Detail

      • getGroup

        public java.lang.String getGroup()
        Get the group.
        Returns:
        the group
      • getProject

        public java.lang.String getProject()
        Get the project.
        Returns:
        the project
      • getVersion

        public java.lang.String getVersion()
        Get the version.
        Returns:
        the version
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object