Class OptCached

  • All Implemented Interfaces:
    Function<com.jcabi.xml.XML,​com.jcabi.xml.XML>, Optimization

    public final class OptCached
    extends Object
    implements Optimization
    The cached optimization. Returns already optimized XML if it's found in the cache.
    Since:
    0.28.11
    • Constructor Detail

      • OptCached

        public OptCached​(Optimization delegate,
                         Path folder,
                         Path path)
        The main constructor.
        Parameters:
        delegate - Real optimization.
        folder - Cache folder.
        path - XML file path.
    • Method Detail

      • apply

        public com.jcabi.xml.XML apply​(com.jcabi.xml.XML xml)
        Specified by:
        apply in interface Function<com.jcabi.xml.XML,​com.jcabi.xml.XML>