Class StringPool.Builder

  • Enclosing class:
    StringPool

    public static final class StringPool.Builder
    extends java.lang.Object
    Builder
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      StringPool build()  
      int put​(java.lang.String string)
      Inserts the given string into the string pool if not present and returns its index
      StringPool.Builder putAnd​(java.lang.String string)  
      • Methods inherited from class java.lang.Object

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

      • put

        public int put​(java.lang.String string)
        Inserts the given string into the string pool if not present and returns its index