| Modifier and Type | Field and Description |
|---|---|
private int |
intField |
private String |
stringField |
| Constructor and Description |
|---|
Rec13Impl()
Default constructor.
|
Rec13Impl(Rec13 from)
Copy constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
static boolean |
equals(Object o1,
Object o2)
Applies equals with null.
|
int |
getIntField()
Returns the value of
intField. |
String |
getStringField()
Returns the value of
stringField. |
int |
hashCode() |
void |
setIntField(int value)
Changes the value of
intField. |
void |
setStringField(String value)
Changes the value of
stringField. |
String |
toString() |
private int intField
private String stringField
public Rec13Impl()
public Rec13Impl(Rec13 from)
from - the instance to copy the values frompublic int getIntField()
Rec13intField.getIntField in interface Rec13public String getStringField()
Rec13stringField.getStringField in interface Rec13public void setIntField(int value)
Rec13intField.setIntField in interface Rec13value - the new valuepublic void setStringField(String value)
Rec13stringField.setStringField in interface Rec13value - the new valuepublic static boolean equals(Object o1, Object o2)
o1 - the first objecto2 - the second objecttrue if equals or both are null, false elseCopyright © 2022. All rights reserved.