Class Empty

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

    @Generated("providence-maven-plugin")
    @Immutable
    public class Empty
    extends java.lang.Object
    implements net.morimekta.providence.PMessage<Empty,Empty._Field>, java.lang.Comparable<Empty>, java.io.Serializable, net.morimekta.providence.serializer.binary.BinaryWriter
    Dummy struct that is just empty. Can be used to "ignore" everything.
    See Also:
    Serialized Form
    • Field Detail

      • kDescriptor

        public static final net.morimekta.providence.descriptor.PStructDescriptor<Empty,Empty._Field> kDescriptor
    • Method Detail

      • has

        public boolean has​(int key)
        Specified by:
        has in interface net.morimekta.providence.PMessage<Empty,Empty._Field>
      • get

        public <T> T get​(int key)
        Specified by:
        get in interface net.morimekta.providence.PMessage<Empty,Empty._Field>
      • 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<Empty,Empty._Field>
        Specified by:
        asString in interface net.morimekta.util.Stringable
      • compareTo

        public int compareTo​(Empty other)
        Specified by:
        compareTo in interface java.lang.Comparable<Empty>
      • 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<Empty,Empty._Field> provider()
      • descriptor

        @Nonnull
        public net.morimekta.providence.descriptor.PStructDescriptor<Empty,Empty._Field> descriptor()
        Specified by:
        descriptor in interface net.morimekta.providence.PMessage<Empty,Empty._Field>
        Specified by:
        descriptor in interface net.morimekta.providence.PValue<Empty>
      • builder

        public static Empty._Builder builder()
        Make a providence.Empty builder.
        Returns:
        The builder instance.