public interface PMessage<Message extends PMessage<Message,Field>,Field extends PField> extends PValue<Message>, net.morimekta.util.Stringable
Modifier and Type | Method and Description |
---|---|
String |
asString()
Pure string representation of content.
|
boolean |
compact() |
PStructDescriptor<Message,Field> |
descriptor() |
Object |
get(int key) |
boolean |
has(int key) |
default Message |
mergeWith(Message other)
Shorthand for merging two messages.
|
PMessageBuilder<Message,Field> |
mutate()
Get a builder that extends the current object.
|
int |
num(int key) |
compareTo
boolean has(int key)
key
- The key of the field.int num(int key)
key
- The key of the field.Object get(int key)
key
- The key of the field.PMessageBuilder<Message,Field> mutate()
default Message mergeWith(Message other)
other
- The message to merge over this messages' values.boolean compact()
String asString()
asString
in interface net.morimekta.util.Stringable
PStructDescriptor<Message,Field> descriptor()
Copyright © 2015–2016 morimekta.net. All rights reserved.