java.lang.Cloneablepublic class Field
extends org.smyld.SMYLDObject
implements java.lang.Cloneable
| Modifier and Type | Field | Description |
|---|---|---|
protected java.lang.String |
Name |
|
protected java.lang.String |
Value |
| Constructor | Description |
|---|---|
Field() |
Empty constructor to initialize the object
|
Field(java.lang.String FieldName,
java.lang.String FieldValue) |
Taking the required parameters to initialize the object
|
| Modifier and Type | Method | Description |
|---|---|---|
java.lang.Object |
clone() |
|
boolean |
equals(Field comparedField) |
Overrides the equals of the parent object class to compare the object
according to the field name
|
java.lang.String |
getName() |
Getting the name of the field
|
java.lang.String |
getValue() |
Getting the value of the field
|
int |
hashCode() |
Overrides the hash code of the parent object class to indentify the
object according to the field name
|
void |
printInstanceValues() |
Print the current instance values in order to use it with toString()
method
|
void |
reset() |
|
void |
setName(java.lang.String FieldName) |
Setting the Name of the field
|
void |
setValue(java.lang.String FieldValue) |
Setting the value of the field
|
public Field()
public Field(java.lang.String FieldName,
java.lang.String FieldValue)
FieldName - the name of the fieldFieldValue - the value of the fieldpublic java.lang.String getValue()
public void setValue(java.lang.String FieldValue)
FieldValue - the new field valuepublic java.lang.String getName()
public void setName(java.lang.String FieldName)
FieldName - the new field namepublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(Field comparedField)
public void printInstanceValues()
printInstanceValues in class org.smyld.SMYLDObjectpublic java.lang.Object clone()
clone in class java.lang.Objectpublic void reset()
Copyright © 2019 SMYLD. All rights reserved.