Jitsi: the OpenSource Java VoIP and Instant Messaging client.

net.java.sip.communicator.impl.gui.main.chat
Class ChatBuffer<E>

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractList<E>
          extended by java.util.ArrayList<E>
              extended by net.java.sip.communicator.impl.gui.main.chat.ChatBuffer<E>
All Implemented Interfaces:
Serializable, Cloneable, Iterable<E>, Collection<E>, List<E>, RandomAccess

public class ChatBuffer<E>
extends ArrayList<E>

Should be used to limit the number of messages shown in the chat conversation area. NOT USED FOR NOW.

Author:
Yana Stamcheva
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
ChatBuffer()
          Creates an instance of ChatBuffer.
 
Method Summary
 boolean add(E o)
          Adds an object to the buffer.
 
Methods inherited from class java.util.ArrayList
add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, remove, remove, removeRange, set, size, toArray, toArray, trimToSize
 
Methods inherited from class java.util.AbstractList
equals, hashCode, iterator, listIterator, listIterator, subList
 
Methods inherited from class java.util.AbstractCollection
containsAll, removeAll, retainAll, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
containsAll, equals, hashCode, iterator, listIterator, listIterator, removeAll, retainAll, subList
 

Constructor Detail

ChatBuffer

public ChatBuffer()
Creates an instance of ChatBuffer. The buffer is initialized with the CHAT_BUFFER_SIZE constant in the Constants class.

Method Detail

add

public boolean add(E o)
Adds an object to the buffer.

Specified by:
add in interface Collection<E>
Specified by:
add in interface List<E>
Overrides:
add in class ArrayList<E>
Parameters:
o - The Object to add.
Returns:
true (as per the general contract of the Collection.add)

Jitsi: the OpenSource Java VoIP and Instant Messaging client.

Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under LGPL license.