org.jrabbit.base.data.structures.base
Interface Accepter<T>

Type Parameters:
T - The type of object to add.
All Known Subinterfaces:
Container<T>, KeyedContainer<T>, Layer, LayeredRenderList
All Known Implementing Classes:
BaseKeyedContainer, BlendedLayer, Cache, DefaultLayer, DefaultLayeredRenderList, FontCache, GroupedCache, ImageCache, LockingList, OrderedKeyedContainer, ParticleSprite, ParticleSprite.Images, ParticleSprite.Transforming, SoundBoard

public interface Accepter<T>

An Acceptor is an object that is able to "add" objects to itself. Obviously, data structures are most likely to utilize this.

Author:
Chris Molini

Method Summary
 void add(T... objects)
          Attempts to add every supplied object.
 boolean add(T object)
          Adds an object, and checks whether the add was successful.
 

Method Detail

add

boolean add(T object)
Adds an object, and checks whether the add was successful.

Parameters:
object - The object to add.
Returns:
Whether or not the add was successful.

add

void add(T... objects)
Attempts to add every supplied object.

Parameters:
objects - The objects to add.