info.magnolia.cms.util
Class NodeDataStringComparator

java.lang.Object
  extended by info.magnolia.cms.util.NodeDataStringComparator
All Implemented Interfaces:
java.util.Comparator<Content>

public class NodeDataStringComparator
extends java.lang.Object
implements java.util.Comparator<Content>

Compares 2 nodes property of type String.

Version:
$Revision: $ ($Author: $)
Author:
gjoseph

Constructor Summary
NodeDataStringComparator(java.lang.String nodeDataName)
           
 
Method Summary
 int compare(Content c1, Content c2)
           
 
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

NodeDataStringComparator

public NodeDataStringComparator(java.lang.String nodeDataName)
Parameters:
nodeDataName - the property to compare.
Method Detail

compare

public int compare(Content c1,
                   Content c2)
Specified by:
compare in interface java.util.Comparator<Content>


Copyright © 2003-2011 Magnolia International Ltd.. All Rights Reserved.