public class Decorations<T> extends java.lang.Object implements java.lang.Cloneable, java.lang.Iterable<IDecorator<T,?>>
Constructor and Description |
---|
Decorations() |
Modifier and Type | Method and Description |
---|---|
Decorations<T> |
clone() |
void |
copyDecorations(T target,
T oldTarget) |
void |
copyDecorations(T target,
T oldTarget,
Decorations<T> oldDecorations) |
Decorations<T> |
deepNewInstance() |
<T2> Decorations<T2> |
deriveDecorationInstance(java.lang.Class<T2> type) |
void |
deriveDecorations(T target,
java.lang.Object oldTarget,
Decorations<?> oldDecorations) |
<D> D |
getForType(java.lang.Class<D> class1) |
java.util.Iterator<IDecorator<T,?>> |
iterator() |
void |
registerDecorator(IDecorator<T,?> newDecorator) |
void |
removeDecorations(T target) |
public <D> D getForType(java.lang.Class<D> class1)
public void registerDecorator(IDecorator<T,?> newDecorator)
public void removeDecorations(T target)
public void copyDecorations(T target, T oldTarget, Decorations<T> oldDecorations)
public void deriveDecorations(T target, java.lang.Object oldTarget, Decorations<?> oldDecorations)
public Decorations<T> deepNewInstance()
public <T2> Decorations<T2> deriveDecorationInstance(java.lang.Class<T2> type)
public Decorations<T> clone()
clone
in class java.lang.Object
public java.util.Iterator<IDecorator<T,?>> iterator()
iterator
in interface java.lang.Iterable<IDecorator<T,?>>