public class Cue
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
content
The content.
|
protected java.lang.String |
type
Type of cue.
|
Modifier and Type | Method and Description |
---|---|
static Cue |
create(java.lang.String type)
Creates a new cue with no content.
|
static Cue |
create(java.lang.String type,
boolean content)
Creates a new cue.
|
static Cue |
create(java.lang.String type,
double content)
Creates a new cue.
|
static Cue |
create(java.lang.String type,
long content)
Creates a new cue.
|
static Cue |
create(java.lang.String type,
java.lang.String content)
Creates a new cue.
|
java.lang.String |
getContent()
Gets this message cue's content.
|
java.lang.String |
getType()
Gets this message cue's type.
|
boolean |
isType(java.lang.String type)
Checks if a cue is a specific type.
|
java.lang.String |
toString() |
protected java.lang.String content
protected java.lang.String type
public static Cue create(java.lang.String type)
type
- the cue type.public static Cue create(java.lang.String type, boolean content)
type
- the cue type.content
- the content.public static Cue create(java.lang.String type, long content)
type
- the cue type.content
- the content.public static Cue create(java.lang.String type, double content)
type
- the cue type.content
- the content.public static Cue create(java.lang.String type, java.lang.String content)
type
- the cue type.content
- the content.public java.lang.String getType()
public boolean isType(java.lang.String type)
type
- the cue type.public java.lang.String getContent()
public java.lang.String toString()
toString
in class java.lang.Object