Class PContainer<Container>

  • Type Parameters:
    Container - The container type.
    All Implemented Interfaces:
    PDescriptor
    Direct Known Subclasses:
    PList, PMap, PSet

    public abstract class PContainer<Container>
    extends java.lang.Object
    implements PDescriptor
    Generic descriptor for a container type.

    See PList, PSet and PMap which specializes for each type of container.

    • Method Detail

      • typeForName

        public static PContainer.Type typeForName​(java.lang.String id)
      • getProgramName

        public java.lang.String getProgramName()
        Description copied from interface: PDescriptor
        The package name is derived form the .thrift file name that is parsed or if read from serialized format is explicit. Note that there may be package name conflicts globally.
        Specified by:
        getProgramName in interface PDescriptor
        Returns:
        The program name of the type. If empty the type is not in any named program, e.g. primitives.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object