Example usage for org.apache.commons.lang CharSet getCharRanges

List of usage examples for org.apache.commons.lang CharSet getCharRanges

Introduction

In this page you can find the example usage for org.apache.commons.lang CharSet getCharRanges.

Prototype

public CharRange[] getCharRanges() 

Source Link

Document

Gets the internal set as an array of CharRange objects.

Usage

From source file:CharSetExampleV1.java

public static void main(String args[]) {
    CharSet set = CharSet.getInstance("the apprentice");
    System.err.println(set.contains('q'));
    CharRange[] range = set.getCharRanges();

    System.err.println(ArrayUtils.toString(range));
}