nl.tudelft.simulation.messaging.comparators
Class PriorityCompare

java.lang.Object
  extended bynl.tudelft.simulation.messaging.comparators.FieldComparator
      extended bynl.tudelft.simulation.messaging.comparators.PriorityCompare
All Implemented Interfaces:
java.util.Comparator, java.io.Serializable
Direct Known Subclasses:
ReversePriorityCompare

public class PriorityCompare
extends FieldComparator

A priority-based comparator to be able to compare messages based on fields.

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
static java.lang.String FIELDNAME
          the fieldName used to check priority
 
Fields inherited from class nl.tudelft.simulation.messaging.comparators.FieldComparator
fieldName, negative, next
 
Constructor Summary
PriorityCompare()
          constructs a new PriorityCompare on the id-field of a message
PriorityCompare(java.util.Comparator next)
          constructs a new PriorityCompare
 
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
 

Field Detail

FIELDNAME

public static final java.lang.String FIELDNAME
the fieldName used to check priority

See Also:
Constant Field Values
Constructor Detail

PriorityCompare

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


PriorityCompare

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

Parameters:
next - the next comparator to use


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