Class PContainer<Container>
- java.lang.Object
-
- net.morimekta.providence.descriptor.PContainer<Container>
-
- Type Parameters:
Container
- The container type.
- All Implemented Interfaces:
PDescriptor
public abstract class PContainer<Container> extends java.lang.Object implements PDescriptor
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
PContainer(PDescriptorProvider provider)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract PBuilder<Container>
builder(int capacity)
Get an instance builder for the container.java.lang.String
getProgramName()
The package name is derived form the .thrift file name that is parsed or if read from serialized format is explicit.PDescriptor
itemDescriptor()
java.lang.String
toString()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface net.morimekta.providence.descriptor.PDescriptor
getDefaultValue, getName, getQualifiedName, getQualifiedName, getType
-
-
-
-
Constructor Detail
-
PContainer
protected PContainer(PDescriptorProvider provider)
-
-
Method Detail
-
itemDescriptor
public PDescriptor itemDescriptor()
-
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 interfacePDescriptor
- 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 classjava.lang.Object
-
-