Interface VisualizedObjectContainer<T>

  • All Superinterfaces:
    Iterable<T>

    public interface VisualizedObjectContainer<T>
    extends Iterable<T>
    Interface for classes that contain objects that can be visualized. This interface essentially decouples the visualization mechanism from Contexts, so that the vizualization code can be used with any class that implements this interface.
    Author:
    Nick Collier
    • Method Detail

      • add

        void add​(T obj)
        Adds the specified object to this container.
        Parameters:
        obj - the object to add. This is the object itself not its visualized representation.
      • remove

        void remove​(T obj)
        Removes the specified object from this container.
        Parameters:
        obj - the object to add. This is the object itself not its visualized representation.
      • contains

        boolean contains​(T obj)
        Whether or not the this container contains the specified object.
        Parameters:
        obj - the object to check
        Returns:
        true if this contains the object otherwise false.