public class StringDto extends Object
Constructor and Description |
---|
StringDto()
StringDto constructor with no parameters.
|
StringDto(String message)
StringDto constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj)
Two StringDto are equals iff the message is equal.
|
String |
getMessage()
Get message.
|
int |
hashCode()
Two StringDto are equals iff the message is equal.
|
void |
setMessage(String message)
Set message.
|
String |
toString()
To String method.
|
public StringDto()
public StringDto(String message)
message
- the messagepublic String getMessage()
public void setMessage(String message)
message
- the message to setpublic int hashCode()
public boolean equals(Object obj)
Copyright © 2023. All rights reserved.