public class NewsBody extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
static int |
MAX_BODY_LENGTH |
Constructor and Description |
---|
NewsBody(NewsSummary summary,
String body)
Creates news body.
|
Modifier and Type | Method and Description |
---|---|
String |
getBody()
Returns news body or empty string if the news contained only summary.
|
NewsKey |
getKey()
Convenient method for
getSummary().getKey() . |
NewsSummary |
getSummary()
Returns news summary.
|
String |
toString() |
public static final int MAX_BODY_LENGTH
public NewsBody(NewsSummary summary, String body)
summary
- news summarybody
- news bodypublic NewsKey getKey()
getSummary().getKey()
.public NewsSummary getSummary()
public String getBody()
Copyright © 2018 Devexperts. All Rights Reserved.