Class 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • StringStore

        public StringStore()
    • 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.