com.vaadin.data.util
Class DefaultItemSorter.DefaultPropertyValueComparator

java.lang.Object
  extended by com.vaadin.data.util.DefaultItemSorter.DefaultPropertyValueComparator
All Implemented Interfaces:
Serializable, Comparator<Object>
Enclosing class:
DefaultItemSorter

public static class DefaultItemSorter.DefaultPropertyValueComparator
extends Object
implements Comparator<Object>, Serializable

Provides a default comparator used for comparing Property values. The DefaultPropertyValueComparator assumes all objects it compares can be cast to Comparable.

See Also:
Serialized Form

Constructor Summary
DefaultItemSorter.DefaultPropertyValueComparator()
           
 
Method Summary
 int compare(Object o1, Object o2)
           
 
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

DefaultItemSorter.DefaultPropertyValueComparator

public DefaultItemSorter.DefaultPropertyValueComparator()
Method Detail

compare

public int compare(Object o1,
                   Object o2)
Specified by:
compare in interface Comparator<Object>


Copyright © 2000-2011 Vaadin Ltd. All Rights Reserved.