@Test public void testLowerBoundExclusiveUpperBoundInclusive() { VersionRange range = parseValid( "(1a,1b]" ); assertNotContains( range, "1a" ); assertContains( range, "1b" ); assertEquals( range, parseValid( range.toString() ) ); }
@Override public String toString() { StringBuilder buffer = new StringBuilder( 64 ); buffer.append( lowerBoundInclusive ? '[' : '(' ); if ( lowerBound != null ) { buffer.append( lowerBound ); } buffer.append( ',' ); if ( upperBound != null ) { buffer.append( upperBound ); } buffer.append( upperBoundInclusive ? ']' : ')' ); return buffer.toString(); }
GenericVersionRange implements VersionRange { @Override public String toString() { StringBuilder buffer = new StringBuilder( 64 ); buffer.append( lowerBoundInclusive ? '[' : '(' ); if ( lowerBound != null ) { buffer.append( lowerBound ); } buffer.append( ',' ); if ( upperBound != null ) { buffer.append( upperBound ); } buffer.append( upperBoundInclusive ? ']' : ')' ); return buffer.toString(); } }
GenericVersionRange implements VersionRange { @Override public String toString() { StringBuilder buffer = new StringBuilder( 64 ); buffer.append( lowerBoundInclusive ? '[' : '(' ); if ( lowerBound != null ) { buffer.append( lowerBound ); } buffer.append( ',' ); if ( upperBound != null ) { buffer.append( upperBound ); } buffer.append( upperBoundInclusive ? ']' : ')' ); return buffer.toString(); } GenericVersionRange( String range );  GenericVersionRange( Version lowerBound, boolean lowerBoundInclusive, Version upperBound,
                                boolean upperBoundInclusive ); }
GenericVersionRange implements VersionRange { @Override public String toString() { StringBuilder buffer = new StringBuilder( 64 ); buffer.append( lowerBoundInclusive ? '[' : '(' ); if ( lowerBound != null ) { buffer.append( lowerBound ); } buffer.append( ',' ); if ( upperBound != null ) { buffer.append( upperBound ); } buffer.append( upperBoundInclusive ? ']' : ')' ); return buffer.toString(); } GenericVersionRange( String range );  GenericVersionRange( Version lowerBound, boolean lowerBoundInclusive, Version upperBound,
                                boolean upperBoundInclusive ); Version getLowerBound(); boolean isLowerBoundInclusive(); Version getUpperBound(); boolean isUpperBoundInclusive(); boolean containsVersion( Version version ); @Override boolean equals( Object obj ); @Override int hashCode(); @Override String toString(); }
GenericVersionRange implements VersionRange { @Override public String toString() { StringBuilder buffer = new StringBuilder( 64 ); buffer.append( lowerBoundInclusive ? '[' : '(' ); if ( lowerBound != null ) { buffer.append( lowerBound ); } buffer.append( ',' ); if ( upperBound != null ) { buffer.append( upperBound ); } buffer.append( upperBoundInclusive ? ']' : ')' ); return buffer.toString(); } GenericVersionRange( String range );  GenericVersionRange( Version lowerBound, boolean lowerBoundInclusive, Version upperBound,
                                boolean upperBoundInclusive ); Version getLowerBound(); boolean isLowerBoundInclusive(); Version getUpperBound(); boolean isUpperBoundInclusive(); boolean containsVersion( Version version ); @Override boolean equals( Object obj ); @Override int hashCode(); @Override String toString();  }