# Class: com.pnfsoftware.jeb.util.encoding.cbor.CborType

Represents the various major types in CBOR, along with their . 

 The major type is encoded in the upper three bits of each initial byte. The lower 5 bytes represent any additional information.

## Method: equals
- parameter: `obj`, type: `java.lang.Object`
- return type: `boolean`


## Method: getAdditionalInfo
- return type: `int`

Description: 
return: the additional information of this type, as integer value from \[0..31\].

## Method: getMajorType
- return type: `int`

Description: 
return: the major type, as integer value from \[0..7\].

## Method: hashCode
- return type: `int`


## Method: isBreakAllowed
- return type: `boolean`

Description: 
return: `true` if this type allows for an infinite\-length payload,         `false` if only definite\-length payloads are allowed.

## Method: isEqualType
- parameter: `other`, type: `com.pnfsoftware.jeb.util.encoding.cbor.CborType`
- return type: `boolean`

Description: Determines whether the major type of a given [CborType](CborType) equals the major type of this [CborType](CborType).
parameter: other: the [CborType](CborType) to compare against, cannot be `null`.
return: `true` if the given [CborType](CborType) is of the same major type as this [CborType](CborType), `false` otherwise.
throws: in case the given argument was `null`.

## Method: isEqualType
- parameter: `encoded`, type: `int`
- return type: `boolean`

Description: Determines whether the major type of a given byte value \(representing an encoded [CborType](CborType)\) equals the major type of this [CborType](CborType).
parameter: encoded: the encoded CBOR type to compare.
return: `true` if the given byte value represents the same major type as this [CborType](CborType), `false` otherwise.

## Method: toString
- return type: `java.lang.String`


## Static Method: getName
- parameter: `mt`, type: `int`
- return type: `java.lang.String`

Description: Returns a descriptive string for the given major type.
parameter: mt: the major type to return as string, values from \[0..7\] are supported.
return: the name of the given major type, as String, never `null`.
throws: in case the given major type is not supported.

## Static Method: valueOf
- parameter: `i`, type: `int`
- return type: `com.pnfsoftware.jeb.util.encoding.cbor.CborType`

Description: Decodes a given byte value to a [CborType](CborType) value.
parameter: i: the input byte \(8\-bit\) to decode into a [CborType](CborType) instance.
return: a [CborType](CborType) instance, never `null`.

