⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 enum.java

📁 SAP这个系统的一个转换器
💻 JAVA
字号:
// Decompiled by Jad v1.5.8e2. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://kpdus.tripod.com/jad.html
// Decompiler options: packimports(3) 
// Source File Name:   Enum.java

package com.sap.mw.jco.util;

import java.io.Serializable;

public abstract class Enum
    implements Cloneable, Serializable
{
    public static class Exception extends RuntimeException
    {

        public Exception(String detailMessage)
        {
            super(detailMessage);
        }
    }


    protected Enum(String name)
    {
        id = ++m_greatestId;
        this.name = name;
    }

    protected Enum(int id, String name)
    {
        this.id = id;
        this.name = name;
        if(id > m_greatestId)
            m_greatestId = id;
    }

    protected Object clone()
    {
        try
        {
            return super.clone();
        }
        catch(CloneNotSupportedException ex)
        {
            throw new InternalError();
        }
    }

    public boolean equals(Object object)
    {
        if(object == null)
            return false;
        if(object == this)
            return true;
        if(!(object instanceof Enum))
            return false;
        Enum enum = (Enum)object;
        if(id != enum.id)
            return false;
        if(name != null)
        {
            if(!name.equals(enum.name))
                return false;
        } else
        if(enum.name != null)
            return false;
        return true;
    }

    public int getId()
    {
        return id;
    }

    public String getName()
    {
        return name;
    }

    public int hashCode()
    {
        return id;
    }

    public String toString()
    {
        return name;
    }

    private static final long serialVersionUID = 1000L;
    public final int id;
    public final String name;
    protected static int m_greatestId = -1;

}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -