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
      • 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()