FileDocCategorySizeDatePackage
Enum.javaAPI DocApache Axis 1.45357Sat Apr 22 18:57:26 BST 2006org.apache.axis.constants

Enum

public abstract class Enum extends Object implements Serializable
General support for 'enumerated' data types. Name searches are case insensitive.
author
Richard Sitze (rsitze@apache.org)

Fields Summary
private static final Hashtable
types
protected static Log
log
private final Type
type
public final int
value
public final String
name
Constructors Summary
protected Enum(Type type, int value, String name)

    
           
        this.type = type;
        this.value = value;
        this.name = name.intern();
    
Methods Summary
private final boolean_equals(org.apache.axis.constants.Enum obj)
The 'equals' logic assumes that there is a one-to-one relationship between value & name. If this isn't true, then expect to be confused when using this class with Collections.

        return (//obj.name == name  &&  // names are internalized
                obj.type == type  &&
                obj.value == value);
    
public final booleanequals(java.lang.Object obj)

        return (obj != null  &&  obj instanceof Enum)
               ? _equals((Enum)obj)
               : false;
    
public final booleanequals(org.apache.axis.constants.Enum obj)

        return (obj != null) ? _equals(obj) : false;
    
public final java.lang.StringgetName()

 return name; 
public final org.apache.axis.constants.Enum$TypegetType()

 return type; 
public final intgetValue()

 return value; 
public inthashCode()

        return value;
    
public java.lang.StringtoString()

        return name;