@Test public void testGetUpperBound() { VersionRange range = UnionVersionRange.from( Collections.<VersionRange> emptySet() ); assertBound( null, false, range.getUpperBound() ); range = UnionVersionRange.from( newRange( "[1,2]" ), newRange( "[3,4]" ) ); assertBound( "4", true, range.getUpperBound() ); range = UnionVersionRange.from( newRange( "[1,2]" ), newRange( "[3,)" ) ); assertBound( null, false, range.getUpperBound() ); range = UnionVersionRange.from( newRange( "[1,2]" ), newRange( "[1,2)" ) ); assertBound( "2", true, range.getUpperBound() ); range = UnionVersionRange.from( newRange( "[1,2]" ), newRange( "[1,3)" ) ); assertBound( "3", false, range.getUpperBound() ); }
public Bound getUpperBound() { return upperBound; }
UnionVersionRange implements VersionRange { public Bound getUpperBound() { return upperBound; } }
UnionVersionRange implements VersionRange { public Bound getUpperBound() { return upperBound; } private  UnionVersionRange( Collection<? extends VersionRange> ranges ); }
UnionVersionRange implements VersionRange { public Bound getUpperBound() { return upperBound; } private  UnionVersionRange( Collection<? extends VersionRange> ranges ); static VersionRange from( VersionRange... ranges ); static VersionRange from( Collection<? extends VersionRange> ranges ); boolean containsVersion( Version version ); Bound getLowerBound(); Bound getUpperBound(); @Override boolean equals( Object obj ); @Override int hashCode(); @Override String toString(); }
UnionVersionRange implements VersionRange { public Bound getUpperBound() { return upperBound; } private  UnionVersionRange( Collection<? extends VersionRange> ranges ); static VersionRange from( VersionRange... ranges ); static VersionRange from( Collection<? extends VersionRange> ranges ); boolean containsVersion( Version version ); Bound getLowerBound(); Bound getUpperBound(); @Override boolean equals( Object obj ); @Override int hashCode(); @Override String toString();  }