T - the type that this object can be combined withpublic interface Combinable<T>
| Modifier and Type | Method and Description |
|---|---|
T |
combineWith(T other)
Combine this object with another object if it is possible and return a combined object.
|
T combineWith(T other)
null
in that case.other - an object to combine this object withnull if the objects shouldn't be combined