Class CachePath

  • All Implemented Interfaces:
    Supplier<Path>

    public final class CachePath
    extends Object
    implements Supplier<Path>
    Function that builds full path to file in global cache.
    Since:
    0.41
    • Constructor Detail

      • CachePath

        public CachePath​(Path base,
                         String semver,
                         String hash,
                         Path tail)
        Ctor.
        Parameters:
        base - Base cache directory
        semver - Semver as part of absolute cache path
        hash - Git hash as part of absolute cache path
        tail - The last part of absolute cache path
      • CachePath

        public CachePath​(Path base,
                         String semver,
                         Supplier<String> hash,
                         Path tail)
        Ctor.
        Parameters:
        base - Base cache directory
        semver - Semver as part of absolute cache path
        hash - Git hash as part of absolute cache path
        tail - The last part of absolute cache path