Class TypedefType

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

    @Generated("providence-maven-plugin")
    @Immutable
    public class TypedefType
    extends java.lang.Object
    implements net.morimekta.providence.PMessage<TypedefType,TypedefType._Field>, java.lang.Comparable<TypedefType>, java.io.Serializable, net.morimekta.providence.serializer.binary.BinaryWriter
    typedef <type> <name>
    See Also:
    Serialized Form
    • Method Detail

      • hasDocumentation

        public boolean hasDocumentation()
      • getDocumentation

        public java.lang.String getDocumentation()
        Returns:
        The field value
      • optionalDocumentation

        @Nonnull
        public java.util.Optional<java.lang.String> optionalDocumentation()
        Returns:
        Optional field value
      • hasType

        public boolean hasType()
      • getType

        @Nonnull
        public java.lang.String getType()
        Returns:
        The field value
      • hasName

        public boolean hasName()
      • getName

        @Nonnull
        public java.lang.String getName()
        Returns:
        The field value
      • 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,TypedefType._Field>
        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
      • builder

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