Class PlatformStringUtils

java.lang.Object
de.hybris.platform.util.typesystem.PlatformStringUtils

public final class PlatformStringUtils extends Object
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 Details

    • valueOf

      public static 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:
      IndexOutOfBoundsException - if the value exceed the range 0-65536
    • valueOf

      public static String valueOf(Integer value)
      Throws:
      NullPointerException - if the given value is null
    • toLowerCaseCached

      public static String toLowerCaseCached(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.