aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/com/jogamp/common/util/VersionNumber.java
Commit message (Collapse)AuthorAgeFilesLines
* Enhance VersionNumber*: Use only RegExp and cache default (no wrapped ↵Sven Gothel2013-05-311-24/+159
| | | | whitespace tokenizer); String match: Store end-of-match and flag defined components.
* VersionNumber*: Add static final 'zeroVersion' for convenience and identity.Sven Gothel2013-04-261-1/+5
|
* VersionNumber: Add API doc, use final int values, remove protected 'nop' ↵Sven Gothel2013-04-161-21/+35
| | | | ctor; Add VersionNumberString [extends VersionNumber] which additionally holds the orig. string value.
* VersionNumber: API doc fixSven Gothel2012-10-241-1/+1
|
* VersionNumber: Add API doc for string parsingSven Gothel2012-10-241-0/+7
|
* VersionNumber: Remove printing Exception (was added for debugging purposes)Sven Gothel2012-10-241-1/+1
|
* Fix VersionNumber: Non digits cut off pattern was '\D.*' and cut off digits ↵Sven Gothel2012-10-241-43/+41
| | | | | | | | | | | | | | | | | | | in case leading non digits appear. '\D.*' matches a leading non-digit and then any character. First the string is tokenized by delim: "OpenGL ES GLSL ES 1.0.16" -> "OpenGL ES GLSL ES 1", "0", "16" Enhance pattern as follows and access collected group if matching: // group1: \D* == leading non digits, optional // group2: \d* == digits // group3: .* == any pending chars, optional final java.util.regex.Pattern nonDigitsCutOff = java.util.regex.Pattern.compile("(\\D*)(\\d*)(.*)"); Reorganized storage from atomic values to int[3] array, allowing simple pattern matching loop. Added unit test.
* Fix VersionNumber cstr w/ string parsing: cutt-off non-digit-parts, suppress ↵Sven Gothel2011-10-271-20/+21
| | | | exceptions
* VersionNumber: Add cstr with version number string and delimeterSven Gothel2011-03-211-0/+29
|
* small cleanup in uitl packageMichael Bien2011-02-261-0/+3
| | | | | | - StringBuffer -> StringBuilder - ReflectionUtil.getBaseName -> class.getSimpleName() - cleanup imports, generics and @Override for all touched classes
* Fix: VersionNumber compare shall throw ClassCastException if argument is of ↵Sven Gothel2011-01-311-2/+4
| | | | different kind
* Add generic VersionNumber util classSven Gothel2010-11-281-0/+92