- Common ways to obtain ValueStringFixed
private void myMethod () {ValueStringFixed v =
String s;new ValueStringFixed(StringUtils.cache(s))
String s;ValueStringFixed.get(s)
Value v;(ValueStringFixed) Value.cache(v)
- Smart code suggestions by Codota
}
return EMPTY; ValueStringFixed obj = new ValueStringFixed(StringUtils.cache(s)); if (s.length() > SysProperties.OBJECT_CACHE_MAX_PER_ELEMENT_SIZE) { return obj;
public static ValueStringFixed get(String s) { if (s.length() == 0) { return EMPTY; } s = trimRight(s); ValueStringFixed obj = new ValueStringFixed(StringCache.get(s)); if (s.length() > SysProperties.OBJECT_CACHE_MAX_PER_ELEMENT_SIZE) { return obj; } return (ValueStringFixed) Value.cache(obj); }
/** * Get or create a fixed length string value for the given string. * Spaces at the end of the string will be removed. * * @param s the string * @return the value */ public static ValueStringFixed get(String s) { s = trimRight(s); if (s.length() == 0) { return EMPTY; } ValueStringFixed obj = new ValueStringFixed(StringUtils.cache(s)); if (s.length() > SysProperties.OBJECT_CACHE_MAX_PER_ELEMENT_SIZE) { return obj; } return (ValueStringFixed) Value.cache(obj); }
/** * Get or create a fixed length string value for the given string. * Spaces at the end of the string will be removed. * * @param s the string * @return the value */ public static ValueStringFixed get(String s) { s = trimRight(s); if (s.length() == 0) { return EMPTY; } ValueStringFixed obj = new ValueStringFixed(StringUtils.cache(s)); if (s.length() > SysProperties.OBJECT_CACHE_MAX_PER_ELEMENT_SIZE) { return obj; } return (ValueStringFixed) Value.cache(obj); }