Package com.microstrategy.utils
Class StringStore
- java.lang.Object
-
- com.microstrategy.utils.StringStore
-
public class StringStore extends java.lang.Object
A helper class that can be used to locally internalize strings.- Since:
- MicroStrategy Web 9.0.1
-
-
Constructor Summary
Constructors Constructor Description StringStore()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getCount()
Returns number of times the intern method was called.int
getSize()
Return the total number of values in the store.java.lang.String
intern(java.lang.String value)
If the given value already present in the internal hash map then it will return the value from the map.
-
-
-
Method Detail
-
intern
public java.lang.String intern(java.lang.String value)
If the given value already present in the internal hash map then it will return the value from the map. Otherwise the given value will be added to the map and then returned as the method result.- Parameters:
value
-
-
getCount
public int getCount()
Returns number of times the intern method was called.
-
getSize
public int getSize()
Return the total number of values in the store.
-
-