FileDocCategorySizeDatePackage
TargetType.javaAPI DocGlassfish v2 API2889Fri May 04 22:34:40 BST 2007com.sun.enterprise.diagnostics

TargetType

public class TargetType extends Object

Fields Summary
public static final TargetType
DAS
public static final TargetType
INSTANCE
private final String
type
Constructors Summary
public TargetType(String typeIn)

    
        
        type = typeIn;
        
        //  can 'type' be null?  Throw an exception if disallowed.
    
Methods Summary
public booleanequals(java.lang.Object o)

        boolean isEqual = false;
        
        if ( o instanceof TargetType ) {
            final TargetType rhs = (TargetType)o;
            
            isEqual  = (type != null && type.equals(rhs.getType())) ||
                (type == null && rhs.getType() == null);
        }
        return isEqual;
    
public java.lang.StringgetType()

        return type;
    
public inthashCode()

        return super.hashCode() ^ (type == null ? "" : type).hashCode();