Class TechnologyReference


  • public class TechnologyReference
    extends Object
    Represents a technology with a name (id) and VersionRange. An example of this would be "eap:7", where "eap" is the id and "7" the version.
    Author:
    Lincoln Baxter, III
    • Constructor Detail

      • TechnologyReference

        public TechnologyReference()
        DO NOT USE -- This is just here to make proxies possible
      • TechnologyReference

        public TechnologyReference​(org.jboss.windup.graph.model.TechnologyReferenceModel model)
      • TechnologyReference

        public TechnologyReference​(String id,
                                   org.jboss.forge.furnace.versions.VersionRange versionRange)
        Construct a new TechnologyReference using the given String ID and VersionRange.
    • Method Detail

      • getVersionRange

        public org.jboss.forge.furnace.versions.VersionRange getVersionRange()
        Get the VersionRange of this TechnologyReference.
      • versionRangesOverlap

        public boolean versionRangesOverlap​(org.jboss.forge.furnace.versions.VersionRange otherRange)
        Takes the given VersionRange objects and returns true if there is any overlap between the two ranges. If either is null, then it is treated as overlapping.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • getVersionRangeAsString

        public String getVersionRangeAsString()
        This provides a parsable version string based upon the current VersionRange. If the version range is null, this will return null.