Package org.primefaces.util
Class SharedStringBuilder
- java.lang.Object
-
- org.primefaces.util.SharedStringBuilder
-
public class SharedStringBuilder extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StringBuilder
get(String key)
Get a sharedStringBuilder
instance.static StringBuilder
get(String key, int initialSize)
Get a sharedStringBuilder
instance.static StringBuilder
get(javax.faces.context.FacesContext context, String key)
Get a sharedStringBuilder
instance.static StringBuilder
get(javax.faces.context.FacesContext context, String key, int initialSize)
Get a sharedStringBuilder
instance.
-
-
-
Method Detail
-
get
public static StringBuilder get(javax.faces.context.FacesContext context, String key, int initialSize)
Get a sharedStringBuilder
instance. This is required as e.g. 100 e.g.SearchExpressionFacade.resolveClientId(javax.faces.context.FacesContext, javax.faces.component.UIComponent, java.lang.String)
calls would create 300StringBuilder
instances!- Parameters:
context
- TheFacesContext
key
- The key for theFacesContext
attributes.initialSize
- The initial size for theStringBuilder
.- Returns:
- The shared
StringBuilder
instance
-
get
public static StringBuilder get(javax.faces.context.FacesContext context, String key)
Get a sharedStringBuilder
instance. This is required as e.g. 100 e.g.SearchExpressionFacade.resolveClientId(javax.faces.context.FacesContext, javax.faces.component.UIComponent, java.lang.String)
calls would create 300StringBuilder
instances!- Parameters:
context
- TheFacesContext
key
- The key for theFacesContext
attributes.- Returns:
- The shared
StringBuilder
instance
-
get
public static StringBuilder get(String key)
Get a sharedStringBuilder
instance. This is required as e.g. 100 e.g.SearchExpressionFacade.resolveClientId(javax.faces.context.FacesContext, javax.faces.component.UIComponent, java.lang.String)
calls would create 300StringBuilder
instances!- Parameters:
key
- The key for theFacesContext
attributes.- Returns:
- The shared
StringBuilder
instance
-
get
public static StringBuilder get(String key, int initialSize)
Get a sharedStringBuilder
instance. This is required as e.g. 100 e.g.SearchExpressionFacade.resolveClientId(javax.faces.context.FacesContext, javax.faces.component.UIComponent, java.lang.String)
calls would create 300StringBuilder
instances!- Parameters:
key
- The key for theFacesContext
attributes.initialSize
- The initial size for theStringBuilder
.- Returns:
- The shared
StringBuilder
instance
-
-