Class PlatformStringUtils
- java.lang.Object
-
- de.hybris.platform.util.typesystem.PlatformStringUtils
-
public final class PlatformStringUtils extends java.lang.ObjectAn 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
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.StringtoLowerCaseCached(java.lang.String key)Method is dedicated to store platform type , qualifier codes , fixed size enum values.static java.lang.StringvalueOf(int value)Extends regular String static cache of size 256.static java.lang.StringvalueOf(java.lang.Integer value)seevalueOf(int).
-
-
-
Method Detail
-
valueOf
public static java.lang.String valueOf(int value)
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:
java.lang.IndexOutOfBoundsException- if the value exceed the range 0-65536
-
valueOf
public static java.lang.String valueOf(java.lang.Integer value)
seevalueOf(int).- Throws:
java.lang.NullPointerException- if the given value is null
-
toLowerCaseCached
public static java.lang.String toLowerCaseCached(java.lang.String key)
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.
-
-