KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > hansel > probes > LEComparator


1 package org.hansel.probes;
2
3 import org.hansel.stack.HanselValue;
4 import org.hansel.stack.LeOp;
5
6 public class LEComparator extends IntComparator {
7     public LEComparator() {
8         super("<=", 5);
9     }
10
11     public boolean compare(int i1, int i2) {
12         return i1 <= i2;
13     }
14
15     public HanselValue createStackEntry(HanselValue op1, HanselValue op2) {
16         return new LeOp(op1, op2);
17     }
18
19 }
20
Popular Tags