T - the type of the object to replacepublic interface Replaceable<T>
| Modifier and Type | Method and Description |
|---|---|
boolean |
canReplace(T part)
Check whether
part can be replaced. |
void |
replace(T target,
T replacement)
Replace part of
this with the replacement object. |
boolean canReplace(T part)
part can be replaced.part - the object to replace parts of thistrue if the object can replace parts of thisCopyright © 2013–2015. All rights reserved.