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 and Description
    `CPNameAndType(CPUTF8 name, CPSignature signature)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and 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 Detail

    - #### CPNameAndType

          public CPNameAndType(CPUTF8 name,
                               CPSignature signature)

  - ### Method Detail

    - #### 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`

Copyright © 2002–2022 The Apache Software Foundation. All rights reserved.