public boolean startsWith ( Text pattern ) { if ( pattern == null ) { return false ; } return this . subSequence ( 0 , pattern . len ) . equals ( pattern ) ; }
Indicates whether the text starts with a certain pattern .