source: trunk/src/ws/fugue88/jpath/NumberSelector.java

Last change on this file was 6, checked in by dsowen, 21 years ago

Split out the access stuff into accesslib.
New Creator interface off-loads object creation to user.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 660 bytes
Line 
1/*
2 * Created on Aug 2, 2005
3 *
4 * $Log$
5 * Revision 1.2  2005/09/21 22:00:45  dsowen
6 * Split out the access stuff into accesslib.
7 * New Creator interface off-loads object creation to user.
8 *
9 * Revision 1.1  2005/08/03 00:35:29  dsowen
10 * Initial commit.
11 *
12 */
13package ws.fugue88.jpath;
14
15/**
16 * @author dsowen
17 */
18public class NumberSelector extends Selector {
19
20        public NumberSelector(final String number)
21        {
22                _number = Integer.valueOf(number);
23        }
24
25        public Object getKey()
26        {
27                return _number;
28        }
29
30        public int getIndex()
31        {
32                return _number.intValue();
33        }
34
35        public String toString()
36        {
37                return "[" + _number + "]";
38        }
39
40        private final Integer _number;
41}
Note: See TracBrowser for help on using the repository browser.