A range has a left (lower) endpoint and a right (upper) endpoint. Each endpoint can be open (excluded from the set) or closed (included in the set).
{@code VersionRange} objects are immutable.
142143144145146147148
} @Override public Requirement addIdentityRequirement(String symbolicName, String version) { NotNullException.assertValue(symbolicName, "symbolicName"); return addIdentityRequirement(symbolicName, new VersionRange(version), null, null); }
858687888990919293949596979899
break; case VersionRange: if (listType) { List<VersionRange> list = new ArrayList<VersionRange>(); for (String val : split(valstr)) { list.add(new VersionRange(val.trim())); } value = list; } else { value = new VersionRange(valstr); } break; case Long: if (listType) { List<Long> list = new ArrayList<Long>();
156157158159160161162
} @Override public Requirement addIdentityRequirement(String symbolicName, String range) { IllegalArgumentAssertion.assertNotNull(symbolicName, "symbolicName"); return addIdentityRequirement(symbolicName, range != null ? new VersionRange(range) : null, null, null); }