Class GlyphArraySplitterRegexImpl

  • All Implemented Interfaces:
    GlyphArraySplitter

    public class GlyphArraySplitterRegexImpl
    extends java.lang.Object
    implements GlyphArraySplitter
    This is an in-efficient implementation based on regex, which helps split the array.
    • Constructor Summary

      Constructors 
      Constructor Description
      GlyphArraySplitterRegexImpl​(java.util.Set<java.util.List<java.lang.Integer>> matchers)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      private java.util.List<java.lang.Integer> convertGlyphIdsToList​(java.lang.String glyphIdsAsString)  
      private java.lang.String convertGlyphIdsToString​(java.util.List<java.lang.Integer> glyphIds)  
      private java.util.Set<java.lang.String> getMatchersAsStrings​(java.util.Set<java.util.List<java.lang.Integer>> matchers)  
      java.util.List<java.util.List<java.lang.Integer>> split​(java.util.List<java.lang.Integer> glyphIds)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • GlyphArraySplitterRegexImpl

        public GlyphArraySplitterRegexImpl​(java.util.Set<java.util.List<java.lang.Integer>> matchers)
    • Method Detail

      • split

        public java.util.List<java.util.List<java.lang.Integer>> split​(java.util.List<java.lang.Integer> glyphIds)
        Specified by:
        split in interface GlyphArraySplitter
      • getMatchersAsStrings

        private java.util.Set<java.lang.String> getMatchersAsStrings​(java.util.Set<java.util.List<java.lang.Integer>> matchers)
      • convertGlyphIdsToString

        private java.lang.String convertGlyphIdsToString​(java.util.List<java.lang.Integer> glyphIds)
      • convertGlyphIdsToList

        private java.util.List<java.lang.Integer> convertGlyphIdsToList​(java.lang.String glyphIdsAsString)