public class PMap<Key,Value> extends PContainer<Map<Key,Value>>
Modifier and Type | Class and Description |
---|---|
static interface |
PMap.Builder<K,V> |
static class |
PMap.ImmutableMapBuilder<K,V> |
static class |
PMap.ImmutableSortedMapBuilder<K extends Comparable,V> |
static class |
PMap.LinkedHashMapBuilder<K,V> |
Constructor and Description |
---|
PMap(PDescriptorProvider keyDesc,
PDescriptorProvider itemDesc,
net.morimekta.providence.descriptor.PMap.BuilderFactory<Key,Value> builderFactory) |
Modifier and Type | Method and Description |
---|---|
PMap.Builder<Key,Value> |
builder()
Get an instance builder for the container.
|
boolean |
equals(Object o) |
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() |
PDescriptor |
keyDescriptor() |
static <K,V> PContainerProvider<Map<K,V>,PMap<K,V>> |
orderedProvider(PDescriptorProvider keyDesc,
PDescriptorProvider itemDesc) |
static <K,V> PContainerProvider<Map<K,V>,PMap<K,V>> |
provider(PDescriptorProvider keyDesc,
PDescriptorProvider itemDesc) |
static <K extends Comparable<K>,V> |
sortedProvider(PDescriptorProvider keyDesc,
PDescriptorProvider itemDesc) |
getProgramName, itemDescriptor, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getQualifiedName
public PMap(PDescriptorProvider keyDesc, PDescriptorProvider itemDesc, net.morimekta.providence.descriptor.PMap.BuilderFactory<Key,Value> builderFactory)
public PDescriptor keyDescriptor()
public String getName()
PDescriptor
public String getQualifiedName(String programContext)
PDescriptor
programContext
- The program which the type should be referenced from.public PType getType()
public PMap.Builder<Key,Value> builder()
PContainer
builder
in class PContainer<Map<Key,Value>>
public static <K,V> PContainerProvider<Map<K,V>,PMap<K,V>> provider(PDescriptorProvider keyDesc, PDescriptorProvider itemDesc)
public static <K extends Comparable<K>,V> PContainerProvider<Map<K,V>,PMap<K,V>> sortedProvider(PDescriptorProvider keyDesc, PDescriptorProvider itemDesc)
public static <K,V> PContainerProvider<Map<K,V>,PMap<K,V>> orderedProvider(PDescriptorProvider keyDesc, PDescriptorProvider itemDesc)
Copyright © 2015–2017 morimekta.net. All rights reserved.