public String toString() { StringBuilder buf = new StringBuilder(); buf.append( isLowerBoundInclusive() ? '[' : '(' ); if ( getLowerBound() != null ) { buf.append( getLowerBound().toString() ); } buf.append( ',' ); if ( getUpperBound() != null ) { buf.append( getUpperBound().toString() ); } buf.append( isUpperBoundInclusive() ? ']' : ')' ); return buf.toString(); } }
public String toString() { StringBuilder buf = new StringBuilder(); buf.append( isLowerBoundInclusive() ? '[' : '(' ); if ( getLowerBound() != null ) { buf.append( getLowerBound().toString() ); } buf.append( ',' ); if ( getUpperBound() != null ) { buf.append( getUpperBound().toString() ); } buf.append( isUpperBoundInclusive() ? ']' : ')' ); return buf.toString(); } }
upperBound = restriction.getUpperBound();
upperBound = restriction.getUpperBound();
if ( res1.getLowerBound() == null || res2.getUpperBound() == null || res1.getLowerBound().compareTo( res2.getUpperBound() ) <= 0 ) if ( res1.getUpperBound() == null || res2.getLowerBound() == null || res1.getUpperBound().compareTo( res2.getLowerBound() ) >= 0 ) if ( res1.getUpperBound() == null ) upper = res2.getUpperBound(); upperInclusive = res2.isUpperBoundInclusive(); else if ( res2.getUpperBound() == null ) upper = res1.getUpperBound(); upperInclusive = res1.isUpperBoundInclusive(); int comparison = res1.getUpperBound().compareTo( res2.getUpperBound() ); if ( comparison < 0 ) upper = res1.getUpperBound(); upperInclusive = res1.isUpperBoundInclusive(); upper = res1.getUpperBound(); upperInclusive = res1.isUpperBoundInclusive() && res2.isUpperBoundInclusive(); upper = res2.getUpperBound(); upperInclusive = res2.isUpperBoundInclusive(); if ( upper == res2.getUpperBound() )
if ( res1.getLowerBound() == null || res2.getUpperBound() == null || res1.getLowerBound().compareTo( res2.getUpperBound() ) <= 0 ) if ( res1.getUpperBound() == null || res2.getLowerBound() == null || res1.getUpperBound().compareTo( res2.getLowerBound() ) >= 0 ) if ( res1.getUpperBound() == null ) upper = res2.getUpperBound(); upperInclusive = res2.isUpperBoundInclusive(); else if ( res2.getUpperBound() == null ) upper = res1.getUpperBound(); upperInclusive = res1.isUpperBoundInclusive(); int comparison = res1.getUpperBound().compareTo( res2.getUpperBound() ); if ( comparison < 0 ) upper = res1.getUpperBound(); upperInclusive = res1.isUpperBoundInclusive(); upper = res1.getUpperBound(); upperInclusive = res1.isUpperBoundInclusive() && res2.isUpperBoundInclusive(); upper = res2.getUpperBound(); upperInclusive = res2.isUpperBoundInclusive(); if ( upper == res2.getUpperBound() )
public int getNature() { if ( artifact.getVersion() != null ) { return artifact.isSnapshot() ? SNAPSHOT : RELEASE; } VersionRange range = artifact.getVersionRange(); if ( range != null ) { for ( Restriction restriction : range.getRestrictions() ) { if ( isSnapshot( restriction.getLowerBound() ) || isSnapshot( restriction.getUpperBound() ) ) { return RELEASE_OR_SNAPSHOT; } } } return RELEASE; }
public String toString() { StringBuilder buf = new StringBuilder(); buf.append( isLowerBoundInclusive() ? "[" : "(" ); if ( getLowerBound() != null ) { buf.append( getLowerBound().toString() ); } buf.append( "," ); if ( getUpperBound() != null ) { buf.append( getUpperBound().toString() ); } buf.append( isUpperBoundInclusive() ? "]" : ")" ); return buf.toString(); } }
if ( !r.isUpperBoundInclusive() && r.getUpperBound() != null ) String s = r.getUpperBound().toString(); if ( s.endsWith( "-!" ) && version.toString().startsWith( s.substring( 0, s.length() - 2 ) ) )
if ( !r.isUpperBoundInclusive() && r.getUpperBound() != null ) String s = r.getUpperBound().toString(); if ( s.endsWith( "-!" ) && version.toString().startsWith( s.substring( 0, s.length() - 2 ) ) )
upperBound = restriction.getUpperBound();
if ( res1.getLowerBound() == null || res2.getUpperBound() == null || res1.getLowerBound().compareTo( res2.getUpperBound() ) <= 0 ) if ( res1.getUpperBound() == null || res2.getLowerBound() == null || res1.getUpperBound().compareTo( res2.getLowerBound() ) >= 0 ) if ( res1.getUpperBound() == null ) upper = res2.getUpperBound(); upperInclusive = res2.isUpperBoundInclusive(); else if ( res2.getUpperBound() == null ) upper = res1.getUpperBound(); upperInclusive = res1.isUpperBoundInclusive(); int comparison = res1.getUpperBound().compareTo( res2.getUpperBound() ); if ( comparison < 0 ) upper = res1.getUpperBound(); upperInclusive = res1.isUpperBoundInclusive(); upper = res1.getUpperBound(); upperInclusive = res1.isUpperBoundInclusive() && res2.isUpperBoundInclusive(); upper = res2.getUpperBound(); upperInclusive = res2.isUpperBoundInclusive(); if ( upper == res2.getUpperBound() )