Class CommitHash.ChConstant

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

    public static final class CommitHash.ChConstant
    extends Object
    implements CommitHash
    Hardcoded commit hash.
    Since:
    0.28.11
    • Constructor Detail

      • ChConstant

        public ChConstant​(String hash)
        The main constructor.
        Parameters:
        hash - Hardcoded value.
    • 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