Java Type Convert TypeToString(int typeNum)

Here you can find the source of TypeToString(int typeNum)

Description

Type To String

License

Apache License

Declaration

public static String TypeToString(int typeNum) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

public class Main {
    public final static int TYPE_NONE = 0;
    public final static int TYPE_FIRE = 1;
    public final static int TYPE_WATER = 2;
    public final static int TYPE_EARTH = 3;
    public final static int TYPE_WIND = 4;
    public final static int TYPE_LIFE = 5;
    public final static int TYPE_TIME = 6;
    public final static int TYPE_SPACE = 7;
    public final static int TYPE_VOID = 8;

    public static String TypeToString(int typeNum) {
        switch (typeNum) {
        case TYPE_FIRE:
            return "Fire";
        case TYPE_WATER:
            return "Water";
        case TYPE_EARTH:
            return "Earth";
        case TYPE_WIND:
            return "Wind";
        case TYPE_LIFE:
            return "Life";
        case TYPE_TIME:
            return "Time";
        case TYPE_SPACE:
            return "Space";
        case TYPE_VOID:
            return "Void";
        case TYPE_NONE:
            return "Neutral";
        default:/*from   w ww . ja va  2 s. c  om*/
            return "None";
        }
    }
}

Related

  1. typeToInt(String type)
  2. typeToJavaCode(Class type)
  3. typeToSignature(String className)
  4. typeToSignature(String type)
  5. typeToSimpleName(String typeName)
  6. typeToString(Object o)
  7. typeToTag(String TheType)
  8. typeToTyperef(Class type)
  9. typeToUnboxedType(Class type)