Class UnionVersionRange

java.lang.Object
org.eclipse.aether.util.version.UnionVersionRange
All Implemented Interfaces:
org.eclipse.aether.version.VersionRange

public final class UnionVersionRange extends Object implements org.eclipse.aether.version.VersionRange
A union of version ranges.
  • Nested Class Summary

    Nested classes/interfaces inherited from interface org.eclipse.aether.version.VersionRange

    org.eclipse.aether.version.VersionRange.Bound
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    containsVersion(org.eclipse.aether.version.Version version)
     
    boolean
     
    static org.eclipse.aether.version.VersionRange
    from(Collection<? extends org.eclipse.aether.version.VersionRange> ranges)
    Creates union VersionRanges out of passed in VersionRange collection.
    static org.eclipse.aether.version.VersionRange
    from(org.eclipse.aether.version.VersionRange... ranges)
    Creates union VersionRanges out of passed in VersionRange instances.
    org.eclipse.aether.version.VersionRange.Bound
     
    org.eclipse.aether.version.VersionRange.Bound
     
    int
     
     

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Method Details

    • from

      public static org.eclipse.aether.version.VersionRange from(org.eclipse.aether.version.VersionRange... ranges)
      Creates union VersionRanges out of passed in VersionRange instances.
      Parameters:
      ranges - The ranges, may be empty array or even null.
    • from

      public static org.eclipse.aether.version.VersionRange from(Collection<? extends org.eclipse.aether.version.VersionRange> ranges)
      Creates union VersionRanges out of passed in VersionRange collection.
      Parameters:
      ranges - The ranges, may be empty collection or even null.
    • containsVersion

      public boolean containsVersion(org.eclipse.aether.version.Version version)
      Specified by:
      containsVersion in interface org.eclipse.aether.version.VersionRange
    • getLowerBound

      public org.eclipse.aether.version.VersionRange.Bound getLowerBound()
      Specified by:
      getLowerBound in interface org.eclipse.aether.version.VersionRange
    • getUpperBound

      public org.eclipse.aether.version.VersionRange.Bound getUpperBound()
      Specified by:
      getUpperBound in interface org.eclipse.aether.version.VersionRange
    • equals

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

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

      public String toString()
      Overrides:
      toString in class Object