Class FpIfTargetExists

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

    public final class FpIfTargetExists
    extends FpEnvelope
    Footprint that behaves like one of the given wrapped footprints depending on existence of provided target path.
    Since:
    0.41
    • Constructor Detail

      • FpIfTargetExists

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

        public FpIfTargetExists​(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