public class PSet<Item> extends PContainer<Set<Item>>
Modifier and Type | Class and Description |
---|---|
static interface |
PSet.Builder<I>
Container builder used in serialization.
|
static class |
PSet.DefaultBuilder<I>
Default builder returning an ImmutableSet.
|
static class |
PSet.OrderedBuilder<I>
Default builder returning an ImmutableSet.
|
static class |
PSet.SortedBuilder<I extends Comparable<I>>
Default builder returning an ImmutableSortedSet.
|
Constructor and Description |
---|
PSet(PDescriptorProvider itemType,
Supplier<PSet.Builder<Item>> builderSupplier) |
Modifier and Type | Method and Description |
---|---|
PSet.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 extends Comparable<I>> |
orderedProvider(PDescriptorProvider itemDesc) |
static <I> PContainerProvider<Set<I>,PSet<I>> |
provider(PDescriptorProvider itemDesc) |
static <I extends Comparable<I>> |
sortedProvider(PDescriptorProvider itemDesc) |
getProgramName, itemDescriptor, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getQualifiedName
public PSet(PDescriptorProvider itemType, Supplier<PSet.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 PSet.Builder<Item> builder()
PContainer
builder
in class PContainer<Set<Item>>
@Nonnull public static <I> PContainerProvider<Set<I>,PSet<I>> provider(PDescriptorProvider itemDesc)
@Nonnull public static <I extends Comparable<I>> PContainerProvider<Set<I>,PSet<I>> sortedProvider(PDescriptorProvider itemDesc)
@Nonnull public static <I extends Comparable<I>> PContainerProvider<Set<I>,PSet<I>> orderedProvider(PDescriptorProvider itemDesc)
Copyright © 2015–2018 morimekta.net. All rights reserved.