| | private final CaptionBlock mBlock; |
| | |
| | - public CaptionParser( final BasedSequence text ) { |
| | + private CaptionParser( final BasedSequence text ) { |
| | assert text != null; |
| | assert text.isNotEmpty(); |
| | assert text.length() > 2; |
| | |
| | final var caption = text.subSequence( 2 ); |
| | |
| | mBlock = new CaptionBlock( caption.trim() ); |
| | } |
| | |
| | - public static boolean canParse( final BasedSequence text ) { |
| | + private static boolean canParse( final BasedSequence text ) { |
| | return text.length() > 3 && |
| | text.charAt( 0 ) == ':' && |
 |
| | |
| | private static class CaptionParserFactory extends AbstractBlockParserFactory { |
| | - public CaptionParserFactory( final DataHolder options ) { |
| | + private CaptionParserFactory( final DataHolder options ) { |
| | super( options ); |
| | } |