KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > mmbase > bridge > jsp > taglib > pageflow > macro > IsGreaterThanTag


1 /*
2
3 This software is OSI Certified Open Source Software.
4 OSI Certified is a certification mark of the Open Source Initiative.
5
6 The license (Mozilla version 1.0) can be read at the MMBase site.
7 See http://www.MMBase.org/license
8
9 */

10 package org.mmbase.bridge.jsp.taglib.pageflow.macro;
11
12 import org.mmbase.bridge.jsp.taglib.pageflow.CompareTag;
13
14 /**
15  * Checks if a value of a context variable is greater than a given value
16  *
17  * @author Michiel Meeuwissen
18  * @version $Id: IsGreaterThanTag.java,v 1.3 2005/05/31 15:36:40 michiel Exp $
19  */

20
21 public class IsGreaterThanTag extends CompareTag {
22     protected boolean doCompare(Comparable JavaDoc compare1, Comparable JavaDoc compare2) {
23         return compare1.compareTo(compare2) > 0;
24     }
25 }
26
Popular Tags