Class PSet<Item>

  • All Implemented Interfaces:
    PDescriptor

    public class PSet<Item>
    extends PContainer<java.util.Set<Item>>
    Descriptor for a set with 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