org.codehaus.mojo.javancss
Class NumericNodeComparator

java.lang.Object
  extended by org.codehaus.mojo.javancss.NumericNodeComparator
All Implemented Interfaces:
java.util.Comparator

public class NumericNodeComparator
extends java.lang.Object
implements java.util.Comparator

Comparator for numeric xml node tag.

Version:
$Id: NumericNodeComparator.java 6588 2008-03-28 12:22:57Z bentmann $
Author:
Jean-Laurent de Morlhon

Constructor Summary
NumericNodeComparator(java.lang.String property)
          The numeric node tag property to used by this comparator.
 
Method Summary
 int compare(java.lang.Object object1, java.lang.Object object2)
          
 
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

NumericNodeComparator

public NumericNodeComparator(java.lang.String property)
The numeric node tag property to used by this comparator.

Parameters:
property - the tag property used by this comparator.
Method Detail

compare

public int compare(java.lang.Object object1,
                   java.lang.Object object2)

Specified by:
compare in interface java.util.Comparator


Copyright © 2005-2011 CodeHaus. All Rights Reserved.