package com.mindprod.example;

/**
 * example use of enum with custom constructor. Enum for dog breed
 * <p/>
 * composed with IntelliJ IDEA
 *
 * @author Roedy Green, Canadian Mind Products
 * @version 1.0, 2006-03-02
 */
@SuppressWarnings( { "UnusedDeclaration", "WeakerAccess" } )
public enum BreedM
    {
    // the three enum constants
        /**
         * Dachshund smooth or curly
         */
        DACHSHUND( "brown" ),
        /**
         * Dalmatian
         */
        DALMATIAN( "spotted" ),
        /**
         * Labrador retrievers
         */
        LABRADOR( "black or tan" );

    // additional instance field of every BreedM enum constant object
    private final String colours;

    // -------------------------- PUBLIC INSTANCE  METHODS --------------------------
    /**
     * additional method of every BreedM enum constant object
     *
     * @return possible colours for this breed.
     */
    public String getColours()
        {
        return colours;
        }

    // --------------------------- CONSTRUCTORS ---------------------------

    /**
     * constructor
     *
     * @param colours possible colours for this breed.
     */
    BreedM( String colours )
        {
        this.colours = colours;
        }
    }