Class AIVersionMarker


  • public class AIVersionMarker
    extends Object
    A parsing / creation class for markers like AIGenVersion(ourversion, inputfile1@version1, inputfile2@version2, ...).
    • Field Detail

      • VERSION_MARKER_PATTERN

        public static final Pattern VERSION_MARKER_PATTERN
      • FILESUFFIX_VERSION

        public static final String FILESUFFIX_VERSION
        Suffix appended to files with formats braindead enough to not allow comments so that we have to store the file version in an additional file.
        See Also:
        Constant Field Values
      • ourVersion

        protected final String ourVersion
      • inputVersions

        protected final List<String> inputVersions
    • Constructor Detail

      • AIVersionMarker

        public AIVersionMarker​(String ourVersion,
                               List<String> inputVersions)
    • Method Detail

      • replaceMarkerIn

        @Nullable
        public static String replaceMarkerIn​(@Nullable
                                             String content,
                                             @Nonnull
                                             String newMarker)
      • determineFileVersionMarker

        public static String determineFileVersionMarker​(@Nonnull
                                                        AIInOut inOut)
        Determine the version marker for input files / prompt files.
      • shaHash

        public static String shaHash​(String content)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • getOurVersion

        public String getOurVersion()
      • getInputVersions

        public List<String> getInputVersions()