PageRenderTime 25ms CodeModel.GetById 19ms RepoModel.GetById 1ms app.codeStats 0ms

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

http://mp-rechnungs-und-kundenverwaltung.googlecode.com/
Java | 74 lines | 9 code | 4 blank | 61 comment | 0 complexity | d335c7b7ad8a36aad1f3f9a09780827a MD5 | raw file
Possible License(s): LGPL-3.0, Apache-2.0, GPL-3.0, GPL-2.0, AGPL-3.0, JSON, BSD-3-Clause
  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. */
  56. package com.plotnix.enum;
  57. import java.util.*;
  58. /**
  59. * Genders: "F" and "M".
  60. *
  61. * @author Dmitri Plotnikov
  62. * @version $Revision$ $Date$
  63. */
  64. public class Gender extends Enum {
  65. public static Gender FEMALE = new Gender("F", "Female");
  66. public static Gender MALE = new Gender("M", "Male");
  67. protected Gender(String code, String label){
  68. super(code, label);
  69. }
  70. }