0.2.0
Features
API
- Implemented public API Builder methods:
Class | Constructor | Description |
---|---|---|
com.arcticicestudio.icecore.hashids.Hashids |
+ getVersion(String):Builder |
Returns the ArcVer / SemVer version of the public API. |
Improvements
API
-
Now using
StringBuilder
class for non-constantString
attributes to avoid unnecessaryString
primitive-wrapping -
No more boxing of primitive for
String
conversion only
Make use of the static JDK method+ String.valueOf(char):String
to avoid waste of memory and cycles by not using a primitive-wrapper with concatenating empty string""
to a primitive.
This change fulfills the Eclipse SonarQube rulesquid:S2131
:Primitives should not be boxed just for
String
conversion -
Changed private methods without access to instance data to be
static
Clarifies that these methods will not modify the state of the object.
This change fulfills the Eclipse SonarQube rulesquid:S2325
:Private methods that don't access instance data should be static
-
Pre-compile regex
Pattern
pattern
Improves the performance (less memory and CPU cycles) by using pre-compiled regex pattern instead of creating instances for eachPattern
call.
The full changelog ist available here