baobab.util
Interface Joinable<T>

Type Parameters:
T - the type of objects that this object may be joined to / splitted from
All Known Implementing Classes:
DecomposedTrace, PermutationCounter, SubTrace, Trace

public interface Joinable<T>

The Joinable interface represents an object which could be joined to another object or splitted from another object

Author:
Marilia D. V. Braga

Method Summary
 boolean isEmpty()
          Tests whether this joinable object is empty
 void join(T joinable)
          Join (merge) the object joinable to this object
 void split(T joinable)
          Split the object joinable from this object
 

Method Detail

join

void join(T joinable)
Join (merge) the object joinable to this object

Parameters:
joinable - the object to be joined

split

void split(T joinable)
Split the object joinable from this object

Parameters:
joinable - the object to be splitted

isEmpty

boolean isEmpty()
Tests whether this joinable object is empty

Returns:
true/false