public class MultiContent extends Object implements Content
Constructor and Description |
---|
MultiContent(Content... contents)
Initialize the content with none, one or several sub contents.
|
MultiContent(List<Content> contents)
Initialize the content with a list of sub contents
|
MultiContent(String content,
String... contents)
Initialize the content with one or several sub contents directly as strings.
|
Modifier and Type | Method and Description |
---|---|
void |
addContent(Content content)
Add a sub content to the list of sub contents.
|
boolean |
equals(Object obj) |
List<Content> |
getContents() |
int |
hashCode() |
String |
toString() |
public MultiContent(String content, String... contents)
content
- the mandatory contentcontents
- the contents either as array or multiple argumentspublic MultiContent(Content... contents)
contents
- the contents either as array or multiple argumentspublic void addContent(Content content)
content
- the content to addCopyright © 2017. All rights reserved.