KickJava   Java API By Example, From Geeks To Geeks.

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


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 smaller than a given value
16  *
17  * @author Michiel Meeuwissen
18  * @version $Id: IsLessThanTag.java,v 1.2 2003/06/06 10:03:30 pierre Exp $
19  */

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