private static class RpmVisualizerHelper.ComparableVersion.StringItem
Represents a string in the version item list, usually a qualifier.
Modifiers | Name | Description |
---|---|---|
private static java.util.Properties |
ALIASES |
|
private static java.lang.String[] |
QUALIFIERS |
|
private static java.lang.String |
RELEASE_VERSION_INDEX |
A comparable value for the empty-string qualifier. |
private static java.util.List<java.lang.String> |
_QUALIFIERS |
|
private java.lang.String |
value |
Constructor and description |
---|
RpmVisualizerHelper.ComparableVersion.StringItem
(java.lang.String value, boolean followedByDigit) |
Methods inherited from class | Name |
---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
A comparable value for the empty-string qualifier. This one is used to determine if a given qualifier makes the version older than one without a qualifier, or more recent.
Returns a comparable value for a qualifier. This method takes into account the ordering of known qualifiers then unknown qualifiers with lexical ordering. just returning an Integer with the index here is faster, but requires a lot of if/then/else to check for -1 or QUALIFIERS.size and then resort to lexical ordering. Most comparisons are decided by the first character, so this is still fast. If more characters are needed then it requires a lexical sort anyway.