public class CachingAbbreviator extends Object implements Abbreviator
Abbreviator that caches results from a delegate abbreviator.
Logger names are typically reused constantly, so caching abbreviations
of class names helps performance.| Constructor and Description |
|---|
CachingAbbreviator(Abbreviator delegate) |
public CachingAbbreviator(Abbreviator delegate)
public String abbreviate(String in)
abbreviate in interface Abbreviatorpublic void clear()
Copyright © 2013–2022. All rights reserved.