package com.mindprod.example;
/**
* example use of enum with custom constructor. Enum for dog breed.
*
* @author Roedy Green, Canadian Mind Products
* @version 1.0 2006-03-02
* @since 2006-03-02
*/
@SuppressWarnings( { "UnusedDeclaration", "WeakerAccess" } )
public enum BreedM
{
/**
* Dachshund smooth or curly
*/
DACHSHUND( "brown" ),
/**
* Dalmatian
*/
DALMATIAN( "spotted" ),
/**
* Labrador retrievers
*/
LABRADOR( "black or tan" );
private final String colours;
/**
* constructor
*
* @param colours possible colours for this breed.
*/
BreedM( String colours )
{
this.colours = colours;
}
/**
* additional method of every BreedM enum constant object
*
* @return possible colours for this breed.
*/
public String getColours()
{
return colours;
}
}