KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > antlr > collections > impl > IntRange


1 package antlr.collections.impl;
2
3 /* ANTLR Translator Generator
4  * Project led by Terence Parr at http://www.jGuru.com
5  * Software rights: http://www.antlr.org/RIGHTS.html
6  *
7  * $Id: //depot/code/org.antlr/main/main/antlr/collections/impl/IntRange.java#4 $
8  */

9
10 public class IntRange {
11     int begin, end;
12
13
14     public IntRange(int begin, int end) {
15         this.begin = begin;
16         this.end = end;
17     }
18
19     public String JavaDoc toString() {
20         return begin + ".." + end;
21     }
22 }
23
Popular Tags