package com.mindprod.example;
public class BreedI extends Enum
{
public static final BreedI[] values()
{
return(BreedI[])$VALUES.clone();
}
public static BreedI valueOf(String s)
{
return(BreedI)Enum.valueOf(com.mindprod.example.BreedI, s);
}
public String getColours()
{
return colours;
}
private BreedI(String s, int i, String s1)
{
super(s, i);
colours = s1;
}
public static final BreedI DACHSHUND;
public static final BreedI DALMATIAN;
public static final BreedI LABRADOR;
private String colours;
private static final BreedI $VALUES[];
static
{
DACHSHUND = new BreedI("DACHSHUND", 0, "brown");
DALMATIAN = new BreedI("DALMATIAN", 1, "spotted")
{
public int getSpotCount()
{
return 50;
}
private final int spots = 50;
};
LABRADOR = new BreedI("LABRADOR", 2, "black or tan");
$VALUES = (new BreedI[] {
DACHSHUND, DALMATIAN, LABRADOR
});
}
static final class BreedI$1 extends BreedI
{
public int getSpotCount()
{
return 50;
}
private final int spots = 50;
BreedI$1(String s, int i, String s1)
{
super(s, i, s1, null);
}
}
}