public class Value extends Object implements Serializable
Constructor and Description |
---|
Value() |
Value(String type,
String content) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj)
Overrides the java.lang.Object.equals method.
|
String |
getContent()
Returns the value of field 'content'.
|
String |
getType()
Returns the value of field 'type'.
|
int |
hashCode()
Overrides the java.lang.Object.hashCode method.
|
void |
setContent(String content)
Sets the value of field 'content'.
|
void |
setType(String type)
Sets the value of field 'type'.
|
public boolean equals(Object obj)
public String getContent()
public String getType()
public int hashCode()
The following steps came from Effective Java Programming Language Guide by Joshua Bloch, Chapter 3
public void setContent(String content)
content
- the value of field 'content'.public void setType(String type)
type
- the value of field 'type'.Copyright © 2017. All rights reserved.