Class TypedefType

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<TypedefType>, Decl, TypedefType_OrBuilder, net.morimekta.providence.PMessage<TypedefType>, net.morimekta.providence.PMessageOrBuilder<TypedefType>, net.morimekta.providence.PValue<TypedefType>, net.morimekta.providence.serializer.binary.BinaryWriter, net.morimekta.util.Stringable

    @Generated(value="net.morimekta.providence:providence-generator-java",
               comments="java:serializable")
    @Immutable
    public class TypedefType
    extends java.lang.Object
    implements Decl, TypedefType_OrBuilder, net.morimekta.providence.PMessage<TypedefType>, java.lang.Comparable<TypedefType>, java.io.Serializable, net.morimekta.providence.serializer.binary.BinaryWriter
    typedef <type> <name>
    See Also:
    Serialized Form
    • Field Detail

      • kDescriptor

        public static final net.morimekta.providence.descriptor.PStructDescriptor<TypedefType> kDescriptor
    • Method Detail

      • hasDocumentation

        public boolean hasDocumentation()
        Specified by:
        hasDocumentation in interface Decl
        Returns:
        If documentation is present.
      • getDocumentation

        public java.lang.String getDocumentation()
        Description copied from interface: Decl
        Documentation for the specific declaration.
        Specified by:
        getDocumentation in interface Decl
        Returns:
        The documentation value
      • optionalDocumentation

        @Nonnull
        public java.util.Optional<java.lang.String> optionalDocumentation()
        Description copied from interface: Decl
        Documentation for the specific declaration.
        Specified by:
        optionalDocumentation in interface Decl
        Returns:
        Optional of the documentation field value.
      • hasName

        public boolean hasName()
        Specified by:
        hasName in interface Decl
        Returns:
        If name is present.
      • getName

        @Nonnull
        public java.lang.String getName()
        Description copied from interface: Decl
        Name of the type, constant or service.
        Specified by:
        getName in interface Decl
        Returns:
        The name value
      • has

        public boolean has​(int key)
        Specified by:
        has in interface net.morimekta.providence.PMessageOrBuilder<TypedefType>
      • get

        public <T> T get​(int key)
        Specified by:
        get in interface net.morimekta.providence.PMessageOrBuilder<TypedefType>
      • 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
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • asString

        @Nonnull
        public java.lang.String asString()
        Specified by:
        asString in interface net.morimekta.providence.PMessage<TypedefType>
        Specified by:
        asString in interface net.morimekta.util.Stringable
      • compareTo

        public int compareTo​(TypedefType other)
        Specified by:
        compareTo in interface java.lang.Comparable<TypedefType>
      • writeBinary

        public int writeBinary​(net.morimekta.util.io.BigEndianBinaryWriter writer)
                        throws java.io.IOException
        Specified by:
        writeBinary in interface net.morimekta.providence.serializer.binary.BinaryWriter
        Throws:
        java.io.IOException
      • provider

        @Nonnull
        public static net.morimekta.providence.descriptor.PStructDescriptorProvider<TypedefType> provider()
      • descriptor

        @Nonnull
        public net.morimekta.providence.descriptor.PStructDescriptor<TypedefType> descriptor()
        Specified by:
        descriptor in interface net.morimekta.providence.PMessageOrBuilder<TypedefType>
        Specified by:
        descriptor in interface net.morimekta.providence.PValue<TypedefType>
      • builder

        public static TypedefType._Builder builder()
        Make a p_model.TypedefType builder.
        Returns:
        The builder instance.