com.gentics.api.lib.expressionparser
Class ExpressionEvaluator.TypeSafeComparator

java.lang.Object
  extended by com.gentics.api.lib.expressionparser.ExpressionEvaluator.TypeSafeComparator
All Implemented Interfaces:
Comparator
Enclosing class:
ExpressionEvaluator

public static class ExpressionEvaluator.TypeSafeComparator
extends Object
implements Comparator

Comparator class for doing typesafe comparisons and sorting.


Constructor Summary
ExpressionEvaluator.TypeSafeComparator()
           
 
Method Summary
 int compare(Object o1, Object o2)
           
static Comparator getInstance()
          static method to get the singleton instance
 
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

ExpressionEvaluator.TypeSafeComparator

public ExpressionEvaluator.TypeSafeComparator()
Method Detail

getInstance

public static final Comparator getInstance()
static method to get the singleton instance

Returns:
singleton instance

compare

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


Copyright © 2013 Gentics Software GmbH. All Rights Reserved.