public class Description extends Object implements ICleanable
| Constructor and Description |
|---|
Description(@NonNull String value,
DescriptionType type) |
Description(@NonNull String value,
DescriptionType type,
String lang) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
canEqual(Object other) |
boolean |
clean()
Cleans the description text, removing HTML and unescaping special characters.
|
boolean |
equals(Object o) |
String |
getLang()
Retrieves the IETF language tag of the description text.
|
DescriptionType |
getType()
Retrieves the type that outlines what the description entails.
|
@NonNull String |
getValue()
Retrieves the free descriptive text.
|
int |
hashCode() |
void |
setLang(String lang)
Sets the IETF language tag of the description text.
|
void |
setValue(@NonNull String value)
Sets the free descriptive text.
|
String |
toString() |
public Description(@NonNull
@NonNull String value,
DescriptionType type)
public Description(@NonNull
@NonNull String value,
DescriptionType type,
String lang)
public boolean clean()
clean in interface ICleanable@NonNull public @NonNull String getValue()
public DescriptionType getType()
public String getLang()
public void setValue(@NonNull
@NonNull String value)
value - free descriptive textpublic void setLang(String lang)
lang - the IETF language tag of the description textprotected boolean canEqual(Object other)
Copyright © 2017–2019. All rights reserved.