| Modifier and Type | Field and Description |
|---|---|
protected String |
name
A name given to the reusable resource.
|
protected T |
object
The reusable object instance.
|
| Constructor and Description |
|---|
AbstractReusable(String name,
T object)
Create a reusable resource with name and the object to be reused.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getName()
Reusable name.
|
T |
getObject()
The reusable object.
|
void |
setName(String name)
Sets the reusable object name.
|
void |
setObject(T object)
Sets the reusable object.
|
protected String name
protected T object
public void setName(String name)
name - The name.public void setObject(T object)
object - The object.Copyright © 2016. All rights reserved.