# Class BasicType

java.lang.Object
org.apache.bcel.generic.Type
org.apache.bcel.generic.BasicType

public final class BasicType extends Type
Denotes basic type such as int.

- ## Field Summary

  ### Fields inherited from class Type

  `BOOLEAN, BYTE, CHAR, CLASS, DOUBLE, FLOAT, INT, LONG, NO_ARGS, NULL, OBJECT, SHORT, signature, STRING, STRINGBUFFER, THROWABLE, type, UNKNOWN, VOID`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `boolean`
  `equals(Object type)`
  `static BasicType`
  `getType(byte type)`
  Gets the BasicType for the given type constant.
  `int`
  `hashCode()`
  Gets the hash code of this Type.

  ### Methods inherited from class Type

  `getArgumentTypes, getClassName, getMethodSignature, getReturnType, getSignature, getSignature, getSize, getType, getType, getType, getTypes, normalizeForStackOrLocal, toString`

  ### Methods inherited from class Object

  `clone, finalize, getClass, notify, notifyAll, wait, wait, wait`

- ## Method Details

  - ### getType

    public static BasicType getType(byte type)
    Gets the BasicType for the given type constant.
    Parameters:
      `type` - the type constant.
    Returns:
      the BasicType.
    Since:
      6.0

  - ### equals

    public boolean equals(Object type)
    Overrides:
      `equals` in class `Type`
    Returns:
      true if both type objects refer to the same type.

  - ### hashCode

    public int hashCode()
    Description copied from class: `Type`
    Gets the hash code of this Type.
    Overrides:
      `hashCode` in class `Type`
    Returns:
      a hash code value for the object.