01: /* ===========================================================================
02: * $RCSfile: Cons.java,v $
03: * ===========================================================================
04: *
05: * RetroGuard -- an obfuscation package for Java classfiles.
06: *
07: * Copyright (c) 1998-2006 Mark Welsh (markw@retrologic.com)
08: *
09: * This program can be redistributed and/or modified under the terms of the
10: * Version 2 of the GNU General Public License as published by the Free
11: * Software Foundation.
12: *
13: * This program is distributed in the hope that it will be useful,
14: * but WITHOUT ANY WARRANTY; without even the implied warranty of
15: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16: * GNU General Public License for more details.
17: *
18: */
19:
20: package COM.rl.util;
21:
22: import java.io.*;
23: import java.util.*;
24:
25: /**
26: * A 'cons' of two references -- useful as a generic return grouping from Enumerations.
27: *
28: * @author Mark Welsh
29: */
30: public class Cons {
31: // Fields ----------------------------------------------------------------
32: public Object car;
33: public Object cdr;
34:
35: // Instance Methods ---------------------------------------------------------
36: /** Ctor. */
37: public Cons(Object car, Object cdr) {
38: this.car = car;
39: this.cdr = cdr;
40: }
41: }
|