public abstract class AbstractModel extends java.lang.Object implements Model
| Constructor and Description |
|---|
AbstractModel() |
| Modifier and Type | Method and Description |
|---|---|
protected Model |
copy(Model model) |
protected <T extends Model> |
copyList(java.util.LinkedList<T> list) |
protected <T extends Model> |
merge(java.util.LinkedList<T> child,
java.util.LinkedList<T> parent)
Merge two lists.
|
protected <T extends Model> |
merge(java.util.LinkedList<T> child,
java.util.LinkedList<T> parent,
boolean addAtEnd)
Merge two lists.
|
protected Model |
merge(Model child,
Model parent)
Merge two model elements.
|
protected java.lang.Object |
merge(java.lang.Object child,
java.lang.Object parent)
Merge two objects.
|
protected java.lang.String |
merge(java.lang.String child,
java.lang.String parent)
Merge two strings.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateCopy, isMergeableWith, mergeprotected java.lang.Object merge(java.lang.Object child,
java.lang.Object parent)
child - the child object to mergeparent - the parent object to mergeprotected java.lang.String merge(java.lang.String child,
java.lang.String parent)
child - the child string to mergeparent - the parent string to mergeprotected Model merge(Model child, Model parent)
child - the child model element to mergeparent - the parent model element to mergeprotected <T extends Model> java.util.LinkedList<T> merge(java.util.LinkedList<T> child, java.util.LinkedList<T> parent)
child - the child list to mergeparent - the parent list to mergeprotected <T extends Model> java.util.LinkedList<T> merge(java.util.LinkedList<T> child, java.util.LinkedList<T> parent, boolean addAtEnd)
child - the child list to mergeparent - the parent list to mergeaddAtEnd - if true new items will be added at the end of the list, otherwise the beginningprotected <T extends Model> java.util.LinkedList<T> copyList(java.util.LinkedList<T> list)