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 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 return null 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