Class CachedTypeSupport

  • All Implemented Interfaces:
    TypeSupport

    final class CachedTypeSupport
    extends java.lang.Object
    implements TypeSupport
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.util.Map<java.lang.String,​java.lang.Boolean> cache  
      private TypeSupport delegate  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean isSupported​(java.lang.String type)  
      • Methods inherited from class java.lang.Object

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

      • cache

        private final java.util.Map<java.lang.String,​java.lang.Boolean> cache
    • Constructor Detail

      • CachedTypeSupport

        CachedTypeSupport​(TypeSupport delegate)
    • Method Detail

      • isSupported

        public final boolean isSupported​(java.lang.String type)
        Specified by:
        isSupported in interface TypeSupport