PageRenderTime 25ms CodeModel.GetById 16ms app.highlight 4ms RepoModel.GetById 2ms app.codeStats 0ms

/lib/docs/enum/test/com/plotnix/enum/ComparisonResult.java

http://mp-rechnungs-und-kundenverwaltung.googlecode.com/
Java | 75 lines | 10 code | 4 blank | 61 comment | 0 complexity | bbfe2f761218c6c5efe365ca59628670 MD5 | raw file
 1/*
 2 * $Header$
 3 * $Revision$
 4 * $Date$
 5 *
 6 * ====================================================================
 7 * The PLOTNIX Software License, Version 1.0
 8 *
 9 *
10 * Copyright (c) 2001 The PLOTNIX Software Foundation.  All rights
11 * reserved.
12 *
13 * Redistribution and use in source and binary forms, with or without
14 * modification, are permitted provided that the following conditions
15 * are met:
16 *
17 * 1. Redistributions of source code must retain the above copyright
18 *    notice, this list of conditions and the following disclaimer.
19 *
20 * 2. Redistributions in binary form must reproduce the above copyright
21 *    notice, this list of conditions and the following disclaimer in
22 *    the documentation and/or other materials provided with the
23 *    distribution.
24 *
25 * 3. The end-user documentation included with the redistribution,
26 *    if any, must include the following acknowledgment:
27 *       "This product includes software developed by the
28 *        PLOTNIX, Inc (http://www.plotnix.com/)."
29 *    Alternately, this acknowledgment may appear in the software itself,
30 *    if and wherever such third-party acknowledgments normally appear.
31 *
32 * 4. The name "PLOTNIX" must not be used to endorse or promote
33 *    products derived from this software without prior written
34 *    permission. For written permission, please contact dmitri@plotnix.com.
35 *
36 * 5. Products derived from this software may not be called "PLOTNIX",
37 *    nor may "PLOTNIX" appear in their name, without prior written
38 *    permission of the PLOTNIX, Inc.
39 *
40 * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
41 * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
42 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
43 * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
44 * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
45 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
46 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
47 * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
48 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
49 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
50 * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
51 * SUCH DAMAGE.
52 * ====================================================================
53 *
54 * For more information on PLOTNIX, Inc, please see <http://www.plotnix.com/>.
55 */
56package com.plotnix.enum;
57
58import java.util.*;
59
60/**
61 * General purpose test bean for JUnit tests for the "jpath" component.
62 *
63 * @author Dmitri Plotnikov
64 * @version $Revision$ $Date$
65 */
66public class ComparisonResult extends Enum {
67
68    public static ComparisonResult LESS_THAN = new ComparisonResult(-1);
69    public static ComparisonResult EQUAL_TO = new ComparisonResult(0);
70    public static ComparisonResult GREATER_THAN = new ComparisonResult(1);
71
72    protected ComparisonResult(int integer){
73        super(integer);
74    }
75}