Class StringCache

java.lang.Object
com.fluxtion.ext.streaming.api.util.StringCache

public class StringCache
extends java.lang.Object
A String cache, receives a CharSequence and checks if there is a match in the cache, returning a cached char sequence that equals the input. This is similar functionality to String.intern() but does not require a String to intern, only a CharSequence.
Author:
gregp
  • Constructor Summary

    Constructors 
    Constructor Description
    StringCache()  
  • Method Summary

    Modifier and Type Method Description
    int cacheSize()  
    void clearCache()  
    java.lang.CharSequence intern​(java.lang.CharSequence cs)  

    Methods inherited from class java.lang.Object

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

  • Method Details

    • intern

      public java.lang.CharSequence intern​(java.lang.CharSequence cs)
    • cacheSize

      public int cacheSize()
    • clearCache

      public void clearCache()