public class CasedString extends Object
Modifier and Type | Class and Description |
---|---|
static class |
CasedString.StringCase
An enumeration of supported string cases.
|
Constructor and Description |
---|
CasedString(CasedString.StringCase stringCase,
String string)
A representation of a cased string and the identified case of that string.
|
Modifier and Type | Method and Description |
---|---|
String[] |
getSegments()
Returns an array of each of the segments in this CasedString.
|
String |
toCase(CasedString.StringCase stringCase)
Converts this cased string into a
String of another format. |
String |
toString()
Returns the string representation provided in the constructor.
|
public CasedString(CasedString.StringCase stringCase, String string)
stringCase
- The StringCase
that the string
argument is in.string
- The string.public String[] getSegments()
public String toCase(CasedString.StringCase stringCase)
String
of another format.
The upper/lower case of the characters within the string are not modified.stringCase
- The format to convert to.Copyright © 2006–2024 Apache Software Foundation. All rights reserved.