public class Category extends Object implements Cloneable, Serializable
Constructor and Description |
---|
Category() |
Modifier and Type | Method and Description |
---|---|
Object |
clone()
Creates a deep 'bean' clone of the object.
|
boolean |
equals(Object other)
Indicates whether some other object is "equal to" this one as defined by the Object equals()
method.
|
String |
getDomain()
Returns the category domain.
|
String |
getValue()
Returns the category value.
|
int |
hashCode()
Returns a hashcode value for the object.
|
void |
setDomain(String domain)
Sets the category domain.
|
void |
setValue(String value)
Sets the category value.
|
String |
toString()
Returns the String representation for the object.
|
public Object clone() throws CloneNotSupportedException
clone
in class Object
CloneNotSupportedException
- thrown if an element of the object cannot be cloned.public boolean equals(Object other)
public int hashCode()
It follows the contract defined by the Object hashCode() method.
public String toString()
public String getDomain()
public void setDomain(String domain)
domain
- the category domain to set, null if none.public String getValue()
public void setValue(String value)
value
- the category value to set, null if none.Copyright © 2022. All rights reserved.