public abstract class AbstractItem
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
| Constructor and Description |
|---|
AbstractItem(int id,
java.lang.CharSequence title)
Creates a new item.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
int |
getId()
Returns the item's id.
|
java.lang.CharSequence |
getTitle()
Returns the item's title.
|
int |
hashCode() |
void |
setTitle(java.lang.CharSequence title)
Sets the item's title.
|
public AbstractItem(int id,
java.lang.CharSequence title)
id - The item's id as an Integer valuetitle - The item's title as an instance of the type CharSequence or null, if no title
should be setpublic final int getId()
Integer valuepublic final java.lang.CharSequence getTitle()
CharSequence or null, if no
title has been setpublic void setTitle(java.lang.CharSequence title)
title - The title, which should be set, as an instance of the type CharSequence or
null, of no title should be setpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Object