141142143144145146147148149150151152153
public void increaseAge() { synchronized (chatMessages) { Iterator<ChatMessage> iter = chatMessages.iterator(); while (iter.hasNext()) { ChatMessage message = iter.next(); message.onTick(); if (message.getAge() > getFadeoutTicks()) { break; } } } }