Class ChText

  • All Implemented Interfaces:
    org.cactoos.Scalar<String>, CommitHash

    public final class ChText
    extends Object
    implements CommitHash
    Commit Hash from text.
    Since:
    0.28.11
    • Constructor Detail

      • ChText

        public ChText​(Path file,
                      String tag)
        Production constructor.
        Parameters:
        file - Path to offline file with hashes and tags.
        tag - Lookup tag.
    • Method Detail

      • value

        public String value()
        Description copied from interface: CommitHash
        SHA Hash.
        Specified by:
        value in interface CommitHash
        Specified by:
        value in interface org.cactoos.Scalar<String>
        Returns:
        SHA of commit