| Package | Description |
|---|---|
| org.marketcetera.util.misc |
Miscellaneous general-purpose utilities.
|
| Modifier and Type | Field and Description |
|---|---|
static UCPFilter |
UCPFilter.ALNUM
A filter for Unicode code points that are letters or digits.
|
static UCPFilter |
UCPFilter.CHAR
A filter for Unicode characters that can be represented by a
single char.
|
static UCPFilter |
UCPFilter.DIGIT
A filter for Unicode code points that are digits.
|
static UCPFilter |
UCPFilter.LETTER
A filter for Unicode code points that are letters.
|
static UCPFilter |
UCPFilter.VALID
A filter for Unicode characters deemed valid by
StringUtils.isValid(int). |
| Modifier and Type | Method and Description |
|---|---|
static UCPFilter |
UCPFilter.forCharset(Charset cs)
Returns a filter for Unicode code points that can be encoded by
the given charset.
|
static UCPFilter |
UCPFilter.getDefaultCharset()
Returns a filter for Unicode code points that can be encoded by
the default JVM charset.
|
static UCPFilter |
UCPFilter.getFileSystemCharset()
Returns a filter for Unicode code points that can be encoded by
the current system file encoding/charset (as specified in the
system property
file.encoding). |
| Modifier and Type | Method and Description |
|---|---|
static String |
RandomStrings.genStr(UCPFilter filter,
int len)
Returns a generated string of the given length whose characters
are all Unicode code points that meet the constraints of the
given filter.
|
static int |
RandomStrings.genUCP(UCPFilter filter)
Returns a randomly generated Unicode code point that meets the
constraints of the given filter.
|
static UCPFilterInfo |
UCPFilterInfo.getInfo(UCPFilter filter)
Returns the meta-information holder for the given filter.
|
Copyright © 2015. All Rights Reserved.