Class ListLabelsDetectionAlgorithm

    • Constructor Detail

      • ListLabelsDetectionAlgorithm

        public ListLabelsDetectionAlgorithm()
    • Method Detail

      • isListLabels

        public abstract boolean isListLabels​(List<String> labels,
                                             int commonStartLength,
                                             int commonEndLength)
      • getCommonStartLength

        protected static int getCommonStartLength​(String s1,
                                                  String s2)
      • getRegex

        protected abstract String getRegex()
      • getStringFromNumber

        protected abstract String getStringFromNumber​(Integer number)
      • getNumberFromString

        protected abstract Integer getNumberFromString​(String string)
      • getRegexStartLength

        protected int getRegexStartLength​(String string)
      • getRegexStartLength

        public static int getRegexStartLength​(String string,
                                              String regex)
      • getNotRegexEndLength

        protected int getNotRegexEndLength​(String string,
                                           int commonEndLength)
      • getNotRegexStartLength

        protected int getNotRegexStartLength​(String string,
                                             int commonStartLength)