Class PlatformStringUtils
java.lang.Object
de.hybris.platform.util.typesystem.PlatformStringUtils
An util class to be used platform type code transformation e.g. to :
- get a type code a string - assuming the type code are in 0 - 65536 range
- get a lower case of type code string - assuming
-
Method Summary
Modifier and TypeMethodDescriptionstatic StringtoLowerCaseCached(String key) Method is dedicated to store platform type , qualifier codes , fixed size enum values.static StringvalueOf(int value) Extends regular String static cache of size 256.static StringseevalueOf(int).
-
Method Details
-
valueOf
Extends regular String static cache of size 256. This returns canonical representation of the string. The values are limited to highest allowed type code id 65536.- Throws:
IndexOutOfBoundsException- if the value exceed the range 0-65536
-
valueOf
seevalueOf(int).- Throws:
NullPointerException- if the given value is null
-
toLowerCaseCached
Method is dedicated to store platform type , qualifier codes , fixed size enum values. Be aware that this might lead to uncontrolled memory consumptions if you e.g. use this method for caching product codes or values which has more less undetermined amount of different values.
-