public class ControlledString extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
ControlledString.Control
Represents a single control (a key-values pair)
|
| Modifier and Type | Field and Description |
|---|---|
ControlledString.Control[] |
controls
The controls that apply to the string.
|
String |
strang
The string the controls apply to.
|
| Constructor and Description |
|---|
ControlledString()
Create a new blank controlled string.
|
ControlledString(String strung)
Create a new controlled string without any controls.
|
ControlledString(String strung,
ControlledString.Control... controls)
Create a new controlled string.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasControls()
Check if the string has controls.
|
static ControlledString |
parse(String lne,
String contInd,
String contSep,
String contArg,
String contEsc)
Parse a controlled string from a regular string.
|
public String strang
public ControlledString.Control[] controls
public ControlledString()
public ControlledString(String strung)
strung - The string to use.public ControlledString(String strung, ControlledString.Control... controls)
strung - The string to use.controls - The controls that apply to the string.public boolean hasControls()
public static ControlledString parse(String lne, String contInd, String contSep, String contArg, String contEsc)
lne - The string to parse frmo.contInd - The indicator for whether or not there are controls.contSep - The separator of individual controls.contArg - The separator of control arguments.contEsc - The escape string for each of the separators/indicators.Copyright © 2019. All rights reserved.