public class ControlledString extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
ControlledString.Control
Represents a single control (a key-values pair)
|
static class |
ControlledString.ParseStrings
Parameter class for defining how to parse a ControlledString.
|
| 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 |
|---|---|
int |
count()
Get the count of controls.
|
boolean |
hasControls()
Check if the string has controls.
|
static ControlledString |
parse(String lne,
ControlledString.ParseStrings strangs)
Parse a controlled string from a regular string.
|
String |
toString() |
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 int count()
public static ControlledString parse(String lne, ControlledString.ParseStrings strangs)
lne - The string to parse from.strangs - The object to read the strings fromCopyright © 2020. All rights reserved.