Class VersionResult

java.lang.Object
org.wildfly.channel.VersionResult

public class VersionResult extends Object
The result of version search.
  • Constructor Details

    • VersionResult

      public VersionResult(String version, String channelName)
  • Method Details

    • getVersion

      public String getVersion()
      The discovered artifact version.
      Returns:
    • getChannelName

      public Optional<String> getChannelName()
      The name of the channel the artifact was found in.
      Returns:
      Optional with the name of the channel providing the version, or an empty Optional if the channel is not named
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

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

      public String toString()
      Overrides:
      toString in class Object