public class Definition extends DataWithExtAttributes
| Constructor and Description |
|---|
Definition(Definition original)
Copy constructor.
|
Definition(String text)
Creates a
Definition object with a given text. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj)
Indicates if this object is equals to a given one.
|
String |
getSource()
Gets the source of this field.
|
String |
getText()
Get the text of this field.
|
int |
hashCode() |
void |
setSource(String source)
sets the source of this field.
|
void |
setText(String text)
Sets the text of this field.
|
getExtAttributes, getExtAttributeValue, hasExtAttribute, setExtAttributespublic Definition(String text)
Definition object with a given text.text - the text of the definition.public Definition(Definition original)
original - the original object to duplicate.public String getText()
public void setText(String text)
text - the new text of this field (can be null).public String getSource()
public void setSource(String source)
source - the new source of this field (can be null).public int hashCode()
hashCode in class DataWithExtAttributespublic boolean equals(Object obj)
DataWithExtAttributesequals in class DataWithExtAttributesobj - the other object to compare.Copyright © 2020. All rights reserved.