public abstract class CMessage<Message extends PMessage<Message,Field>,Field extends PField> extends Object implements PMessage<Message,Field>
| Modifier and Type | Method and Description |
|---|---|
String |
asString() |
protected static <T extends PMessage<T,F>,F extends PField> |
asString(T message)
Prints a compact string representation of the message.
|
boolean |
compact() |
protected static <T extends Comparable<T>> |
compare(T o1,
T o2)
Compare two values to each other.
|
int |
compareTo(Message other) |
boolean |
equals(Object o) |
Object |
get(int key) |
boolean |
has(int key) |
int |
hashCode() |
int |
num(int key) |
String |
toString() |
public boolean has(int key)
public int num(int key)
public Object get(int key)
public boolean compact()
public int compareTo(Message other)
public String asString()
protected static <T extends PMessage<T,F>,F extends PField> String asString(T message)
T - The message type.F - The field type.message - The message to stringify.protected static <T extends Comparable<T>> int compare(T o1, T o2)
T - The object type.o1 - The first value.o2 - The second value.Copyright © 2015–2017 morimekta.net. All rights reserved.