package com.mindprod.example;
import java.io.PrintStream;
public final class Breed extends Enum
{
public static final Breed[] values()
{
return(Breed[])$VALUES.clone();
}
public static Breed valueOf(String s)
{
return(Breed)Enum.valueOf(com.mindprod.example.Breed, s);
}
private Breed(String s, int i)
{
super(s, i);
}
public static boolean lap(Breed breed)
{
static class _cls1
{
static final int $SwitchMap$com$mindprod$example$Breed[];
static
{
$SwitchMap$com$mindprod$example$Breed = new int[Breed.values().length];
try
{
$SwitchMap$com$mindprod$example$Breed[Breed.DALMATIAN.ordinal()] = 1;
}
catch ( NoSuchFieldError nosuchfielderror )
{
}
try
{
$SwitchMap$com$mindprod$example$Breed[Breed.LABRADOR.ordinal()] = 2;
}
catch ( NoSuchFieldError nosuchfielderror1 )
{
}
try
{
$SwitchMap$com$mindprod$example$Breed[Breed.DACHSHUND.ordinal()] = 3;
}
catch ( NoSuchFieldError nosuchfielderror2 )
{
}
}
}
switch ( _cls1..SwitchMap.com.mindprod.example.Breed[breed.ordinal()] )
{
case 1:
case 2:
default:
return false;
case 3:
return true;
}
}
public static void main(String args[])
{
Breed breed = LABRADOR;
out.println(breed);
out.println(breed.ordinal());
out.println(DACHSHUND);
if ( breed.compareTo(DALMATIAN) > 0 )
out.println("LABRADOR comes after DALMATIAN");
else
out.println("DALMATIAN comes after LABRADOR");
breed = null;
Breed breed1 = valueOf("Dachshund".toUpperCase());
out.println(breed1);
int i = 1;
Breed breed2 = values()[i];
out.println(breed2);
out.println("All possible breeds");
Breed abreed[] = values();
int j = abreed.length;
for ( int k = 0; k < j; k++ )
{
Breed breed3 = abreed[k];
out.println(breed3);
}
}
public static final Breed DACHSHUND;
public static final Breed DALMATIAN;
public static final Breed LABRADOR;
private static final Breed $VALUES[];
static
{
DACHSHUND = new Breed("DACHSHUND", 0);
DALMATIAN = new Breed("DALMATIAN", 1);
LABRADOR = new Breed("LABRADOR", 2);
$VALUES = (new Breed[] {
DACHSHUND, DALMATIAN, LABRADOR
});
}
static class Breed$1
{
static final int $SwitchMap$com$mindprod$example$Breed[];
static
{
$SwitchMap$com$mindprod$example$Breed = new int[Breed.values().length];
try
{
$SwitchMap$com$mindprod$example$Breed[Breed.DALMATIAN.ordinal()] = 1;
}
catch ( NoSuchFieldError nosuchfielderror )
{
}
try
{
$SwitchMap$com$mindprod$example$Breed[Breed.LABRADOR.ordinal()] = 2;
}
catch ( NoSuchFieldError nosuchfielderror1 )
{
}
try
{
$SwitchMap$com$mindprod$example$Breed[Breed.DACHSHUND.ordinal()] = 3;
}
catch ( NoSuchFieldError nosuchfielderror2 )
{
}
}
}
}