/**
* Appends all of the elements in the specified collection to the end of this list, in the order that they are returned by the specified {@link Collection}'s {@link Iterator}. The behavior of this operation is unspecified if the specified collection is modified while the operation is in progress. (Note that this will occur if the specified collection is this list, and it's nonempty.)
* @param c collection whose elements are to be added to this list.
* @return <tt>true</tt> if this list changed as a result of the call.
* @throws ClassCastException if the class of an element in the specifiedcollection prevents it from being added to this list.
* @throws IllegalArgumentException if some aspect of an element in thespecified collection prevents it from being added to this list.
*/
public boolean addAll(Collection c){
if (c.isEmpty()) {
return false;
}
Iterator it=c.iterator();
while (it.hasNext()) {
insertListable(_head.prev(),null,it.next());
}
return true;
}

Example 5

From project accounted4, under directory /accounted4/accounted4-money/src/main/java/com/accounted4/money/.

@Override public void run(){
long currentTime=System.currentTimeMillis();
Iterator<Player> iterator=this.channelManager.getChannelByChannelName("Support").getPlayers().iterator();
Player thisPlayer;
while (iterator.hasNext()) {
thisPlayer=iterator.next();
if (!chatListener.hasWritten(thisPlayer,currentTime)) {
this.channelManager.updatePlayer(thisPlayer,this.channelManager.getChannelByChannelName("Lobby"));
TextUtils.sendSuccess(thisPlayer,"You are now in the lobby.");
}
}
}

Example 13

From project 3Dto2DApplet, under directory /src/java/nl/dannyarends/generic/.

From project acceleo-modules, under directory /psm-gen-scala/plugins/com.github.sbegaudeau.acceleo.modules.psm.gen.scala.editor/src-gen/com/github/sbegaudeau/acceleo/modules/psm/gen/scala/model/scala/presentation/.