nl.tudelft.simulation.messaging.comparators
Class LiFo

java.lang.Object
  extended bynl.tudelft.simulation.messaging.comparators.FieldComparator
      extended bynl.tudelft.simulation.messaging.comparators.FiFo
          extended bynl.tudelft.simulation.messaging.comparators.LiFo
All Implemented Interfaces:
java.util.Comparator, java.io.Serializable

public class LiFo
extends FiFo

A LiFo sorting mechanism for messages.
Copyright (c) 2003-2005 Delft University of Technology, Jaffalaan 5, 2628 BX Delft, the Netherlands. All rights reserved. See for project information www.simulation.tudelft.nl . The source code and binary code of this software is proprietary information of Delft University of Technology.

Version:
$$Revision: 1.3 $$ $$Date: 2005/04/08 11:29:12 $$
Author:
Peter Jacobs
See Also:
Serialized Form

Field Summary
 
Fields inherited from class nl.tudelft.simulation.messaging.comparators.FiFo
FIELDNAME
 
Fields inherited from class nl.tudelft.simulation.messaging.comparators.FieldComparator
fieldName, negative, next
 
Constructor Summary
LiFo()
          constructs a new LiFo on the id-field of a message
LiFo(java.util.Comparator next)
          constructs a new LiFo
 
Methods inherited from class nl.tudelft.simulation.messaging.comparators.FieldComparator
compare, isNegative, setNegative
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Comparator
equals
 

Constructor Detail

LiFo

public LiFo()
constructs a new LiFo on the id-field of a message


LiFo

public LiFo(java.util.Comparator next)
constructs a new LiFo

Parameters:
next - the next comparator to use


Copyright © 2004-2005 Delft University of Technology, the Netherlands. All Rights Reserved.