public static void clear ( ) { lock . writeLock ( ) . lock ( ) ; try { allStrings = new EfficientStringBiMap ( HASH_MODULO ) ; indexCounter . set ( 0 ) ; } finally { lock . writeLock ( ) . unlock ( ) ; } }
Clears the registry of existing Strings and resets the index to 0 . Use this to free up memory .