Class PMap<Key,​Value>

  • All Implemented Interfaces:
    PDescriptor

    public class PMap<Key,​Value>
    extends PContainer<java.util.Map<Key,​Value>>
    Descriptor for a map with key and item type.
    • Method Detail

      • getName

        @Nonnull
        public java.lang.String getName()
        Description copied from interface: PDescriptor
        The name of the type is the Identifier string from the IDL.
        Returns:
        The name of the type. Not including package.
      • getQualifiedName

        @Nonnull
        public java.lang.String getQualifiedName​(java.lang.String programContext)
        Description copied from interface: PDescriptor
        This will return the qualified name of the type given the program context.
        Parameters:
        programContext - The program which the type should be referenced from.
        Returns:
        The qualified name of the type. Including program if not matching with programContext.
      • getType

        @Nonnull
        public PType getType()
        Returns:
        Get the field type.
      • getDefaultValue

        @Nullable
        public java.lang.Object getDefaultValue()
        Returns:
        The default value for the type used for default and required fields. Note that some primitive types don't support null values, and will have methods returning a default value regardless of the field required value setting.
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • builder

        @Nonnull
        public PMap.Builder<Key,​Value> builder​(int capacity)
        Description copied from class: PContainer
        Get an instance builder for the container.
        Specified by:
        builder in class PContainer<java.util.Map<Key,​Value>>
        Parameters:
        capacity - Requested container capacity.
        Returns:
        The instance builder.