Interface Combinable<T>
-
- Type Parameters:
T
- the type that this object can be combined with
- All Known Implementing Classes:
SpanLimit
,SpanSquare
public interface Combinable<T>
Interface for objects that can be combined with another object.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description T
combineWith(T other)
Combine this object with another object if it is possible and return a combined object.
-
-
-
Method Detail
-
combineWith
T combineWith(T other)
Combine this object with another object if it is possible and return a combined object. This method may determine that it is not possible to combine the objects and returnnull
in that case.- Parameters:
other
- an object to combine this object with- Returns:
- a combined object, or
null
if the objects shouldn't be combined
-
-