public class PList<Item> extends PContainer<List<Item>>
Modifier and Type | Class and Description |
---|---|
static interface |
PList.Builder<I>
Container builder used in serialization.
|
static class |
PList.DefaultBuilder<I>
Default builder returning an ImmutableList.
|
Constructor and Description |
---|
PList(PDescriptorProvider itemType,
Supplier<PList.Builder<Item>> builderSupplier) |
Modifier and Type | Method and Description |
---|---|
PList.Builder<Item> |
builder()
Get an instance builder for the container.
|
boolean |
equals(Object o) |
Object |
getDefaultValue() |
String |
getName()
The name of the type is the Identifier string from the IDL.
|
String |
getQualifiedName(String programContext)
This will return the qualified name of the type given the program context.
|
PType |
getType() |
int |
hashCode() |
static <I> PContainerProvider<List<I>,PList<I>> |
provider(PDescriptorProvider itemDesc) |
static <I> PContainerProvider<List<I>,PList<I>> |
provider(PDescriptorProvider itemDesc,
Supplier<PList.Builder<I>> builderFactory) |
getProgramName, itemDescriptor, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getQualifiedName
public PList(PDescriptorProvider itemType, Supplier<PList.Builder<Item>> builderSupplier)
@Nonnull public String getName()
PDescriptor
@Nonnull public String getQualifiedName(String programContext)
PDescriptor
programContext
- The program which the type should be referenced from.@Nullable public Object getDefaultValue()
@Nonnull public PList.Builder<Item> builder()
PContainer
builder
in class PContainer<List<Item>>
@Nonnull public static <I> PContainerProvider<List<I>,PList<I>> provider(PDescriptorProvider itemDesc)
@Nonnull public static <I> PContainerProvider<List<I>,PList<I>> provider(PDescriptorProvider itemDesc, Supplier<PList.Builder<I>> builderFactory)
Copyright © 2015–2017 morimekta.net. All rights reserved.