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

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

public static class ExpressionEvaluator.TypeSafeComparator
extends java.lang.Object
implements java.util.Comparator

Comparator class for doing typesafe comparisons and sorting.


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

Returns:
singleton instance

compare

public int compare(java.lang.Object o1,
                   java.lang.Object o2)
Specified by:
compare in interface java.util.Comparator


Copyright © 2013 Gentics Software GmbH. All Rights Reserved.