| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public StringBuilder | appendCanonicalized(final StringBuilder
the string builder to append to (must not be target, final String null)the possibly non-canonical version (must not be original)null)Implements io. Append the canonical representation of this version to the given builder, according to the current version scheme. |
| public int | compare(final String
the first version (must not be v1, final String null)the second version (must not be v2)null)Implements io. Compare two versions according to this version scheme. |
| protected abstract int | Returns: -1, 0, or 1 if the first version is less than, equal to, or greater than the
second versionthe iterator for the first version (must not be i1, I null)the iterator for the second version (must not be i2)null)Redeclares java. Compare the current tokens of the two given iterators. |
| protected int | Returns: -1, 0, or 1 if the first version is less than, equal to, or greater than the
second versionthe iterator for the first version (must not be i1, I null)the iterator for the second version (must not be i2)null)Compare the next elements of the given iterators. |
| protected int | Returns: -1, 0, or 1 if the first version is less than, equal to, or greater than zerothe version iterator (must not be i)null)Compare the given version iterator against zero. |
| public abstract I | iterate(final String
the version to iterate (must not be version)null)Redeclares io. Iterate the canonicalized components of the given version according to the rules of this versioning scheme. |
| AbstractVersionScheme | back to summary |
|---|---|
| protected AbstractVersionScheme() Construct a new instance. | |
| appendCanonicalized | back to summary |
|---|---|
| public StringBuilder appendCanonicalized(final StringBuilder target, final String original) Implements io. Doc from io. Append the canonical representation of this version to the given builder, according to the current version scheme.
| |
| compare | back to summary |
|---|---|
| public int compare(final String v1, final String v2) Implements io. Doc from io. Compare two versions according to this version scheme. | |
| compare | back to summary |
|---|---|
| protected abstract int compare(I i1, I i2) Redeclares java. Compare the current tokens of the two given iterators. If the tokens are equal, then this method should
recurse to
| |
| compareNext | back to summary |
|---|---|
| protected int compareNext(I i1, I i2) Compare the next elements of the given iterators. If one iterator is at the end of iteration (its iterator
reports no next element), the corresponding version is considered to come before the other version. If
both iterators are at the end of iteration, the versions are considered equal. Otherwise,
| |
| compareZero | back to summary |
|---|---|
| protected int compareZero(I i) Compare the given version iterator against zero. The default implementation assumes that any non-empty version comes after zero.
| |
| iterate | back to summary |
|---|---|
| public abstract I iterate(final String version) Redeclares io. Doc from io. Iterate the canonicalized components of the given version according to the rules of this versioning scheme.
| |