BreakIterator isBoundary() method in Java with Examples
The isBoundary() method of java.text.BreakIterator class is used to check if the passed offset is boundary or not.
Attention reader! Don’t stop learning now. Get hold of all the important Java Foundation and Collections concepts with the Fundamentals of Java and Java Collections Course at a student-friendly price and become industry ready. To complete your preparation from learning a language to DS Algo and many more, please refer Complete Interview Preparation Course.
public boolean isBoundary(int offset)
Parameter: This method takes offset as a parameter for checking if it is a boundary or not.
Return Value: This method provides true if the passed offset is boundary otherwise false.
Below are the examples to illustrate the isBoundary() method:
offset is a boundary
offset is not a boundary