Package org.apache.commons.compress.harmony.pack200

# Class CPNameAndType

java.lang.Object
org.apache.commons.compress.harmony.pack200.ConstantPoolEntry
org.apache.commons.compress.harmony.pack200.CPNameAndType

All Implemented Interfaces:
  `Comparable`

public class CPNameAndType extends ConstantPoolEntry implements Comparable
Constant pool entry for a name and type pair.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `CPNameAndType(CPUTF8 name, CPSignature signature)`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `int`
  `compareTo(Object obj)`
  `String`
  `getName()`
  `int`
  `getNameIndex()`
  `int`
  `getTypeIndex()`
  `String`
  `toString()`

  ### Methods inherited from class org.apache.commons.compress.harmony.pack200.ConstantPoolEntry

  `getIndex, setIndex`

  ### Methods inherited from class java.lang.Object

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

- ## Constructor Details

  - ### CPNameAndType

    public CPNameAndType(CPUTF8 name, CPSignature signature)

- ## Method Details

  - ### compareTo

    public int compareTo(Object obj)
    Specified by:
      `compareTo` in interface `Comparable`

  - ### getName

    public String getName()

  - ### getNameIndex

    public int getNameIndex()

  - ### getTypeIndex

    public int getTypeIndex()

  - ### toString

    public String toString()
    Overrides:
      `toString` in class `Object`