@Generated(value="providence-maven-plugin") @Immutable public class Empty extends Object implements PMessage<Empty,Empty._Field>, Comparable<Empty>, Serializable, BinaryWriter
| Modifier and Type | Class and Description |
|---|---|
static class |
Empty._Builder
Dummy struct that is just empty.
|
static class |
Empty._Field |
| Modifier and Type | Field and Description |
|---|---|
static PStructDescriptor<Empty,Empty._Field> |
kDescriptor |
| Modifier and Type | Method and Description |
|---|---|
String |
asString()
Pure string representation of content.
|
static Empty._Builder |
builder()
Make a
putil.Empty builder. |
int |
compareTo(Empty other) |
PStructDescriptor<Empty,Empty._Field> |
descriptor() |
boolean |
equals(Object o) |
<T> T |
get(int key) |
boolean |
has(int key) |
int |
hashCode() |
Empty._Builder |
mutate()
Get a builder that extends the current object.
|
static PStructDescriptorProvider<Empty,Empty._Field> |
provider() |
String |
toString() |
int |
writeBinary(net.morimekta.util.io.BigEndianBinaryWriter writer)
Write the current message to the binary writer.
|
public static final PStructDescriptor<Empty,Empty._Field> kDescriptor
public boolean has(int key)
has in interface PMessage<Empty,Empty._Field>key - The key of the field.public <T> T get(int key)
get in interface PMessage<Empty,Empty._Field>T - The return type.key - The key of the field.@Nonnull public String asString()
PMessageasString in interface PMessage<Empty,Empty._Field>asString in interface net.morimekta.util.Stringablepublic int compareTo(Empty other)
compareTo in interface Comparable<Empty>public int writeBinary(net.morimekta.util.io.BigEndianBinaryWriter writer)
throws IOException
BinaryWriterBinarySerializer.serialize(OutputStream, PMessage)
call.writeBinary in interface BinaryWriterwriter - The binary writer to write to.IOException - If it failed to write the message for any reason.@Nonnull public Empty._Builder mutate()
PMessagemutate in interface PMessage<Empty,Empty._Field>@Nonnull public static PStructDescriptorProvider<Empty,Empty._Field> provider()
@Nonnull public PStructDescriptor<Empty,Empty._Field> descriptor()
descriptor in interface PMessage<Empty,Empty._Field>descriptor in interface PValue<Empty>public static Empty._Builder builder()
putil.Empty builder.Copyright © 2015–2019 morimekta.net. All rights reserved.