Class FpIfOlder

  • All Implemented Interfaces:
    org.cactoos.BiFunc<Path,​Path,​Path>, Footprint

    public final class FpIfOlder
    extends FpEnvelope
    Footprint that behaves as first given wrapped Footprint if provided target exists and older than source. Behaves as second given wrapped Footprint otherwise.
    Since:
    0.41
    • Constructor Detail

      • FpIfOlder

        public FpIfOlder​(Footprint first,
                         Footprint second)
        Ctor.
        Parameters:
        first - First wrapped footprint
        second - Second wrapped footprint
      • FpIfOlder

        public FpIfOlder​(org.cactoos.Func<Path,​Path> destination,
                         Footprint first,
                         Footprint second)
        Ctor.
        Parameters:
        destination - Function that modifies result target path
        first - First wrapped footprint
        second - Second wrapped footprint