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
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPContainer.TypeEnum containing the values of thecontainer = "..."
-
Constructor Summary
Constructors Modifier Constructor Description protectedPContainer(PDescriptorProvider provider)
-
Method Summary
All Methods Static 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.StringgetProgramName()The package name is derived form the .thrift file name that is parsed or if read from serialized format is explicit.PDescriptoritemDescriptor()java.lang.StringtoString()static PContainer.TypetypeForName(java.lang.String id)-
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
-
typeForName
public static PContainer.Type typeForName(java.lang.String id)
-
itemDescriptor
public PDescriptor itemDescriptor()
-
getProgramName
public java.lang.String getProgramName()
Description copied from interface:PDescriptorThe 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:
getProgramNamein 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:
toStringin classjava.lang.Object
-
-