Class FormatterLabelCache

  • All Implemented Interfaces:
    java.util.Map<java.lang.Number,​java.lang.String>

    public class FormatterLabelCache
    extends java.util.WeakHashMap<java.lang.Number,​java.lang.String>
    Simple cache to keep recurring results of String formatters
    Author:
    rstein
    • Nested Class Summary

      • Nested classes/interfaces inherited from class java.util.AbstractMap

        java.util.AbstractMap.SimpleEntry<K extends java.lang.Object,​V extends java.lang.Object>, java.util.AbstractMap.SimpleImmutableEntry<K extends java.lang.Object,​V extends java.lang.Object>
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String get​(javafx.util.StringConverter<java.lang.Number> formatter, java.lang.Number value)  
      • Methods inherited from class java.util.WeakHashMap

        clear, containsKey, containsValue, entrySet, forEach, get, isEmpty, keySet, put, putAll, remove, replaceAll, size, values
      • Methods inherited from class java.util.AbstractMap

        clone, equals, hashCode, toString
      • Methods inherited from class java.lang.Object

        finalize, getClass, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface java.util.Map

        compute, computeIfAbsent, computeIfPresent, equals, getOrDefault, hashCode, merge, putIfAbsent, remove, replace, replace
    • Constructor Detail

      • FormatterLabelCache

        public FormatterLabelCache()
    • Method Detail

      • get

        public java.lang.String get​(javafx.util.StringConverter<java.lang.Number> formatter,
                                    java.lang.Number value)