public static final class Descriptor.Properties<Message> extends Object
Modifier and Type | Class and Description |
---|---|
static class |
Descriptor.Properties.Property<Message,T>
A property.
|
Modifier and Type | Method and Description |
---|---|
<T> T |
getValueOf(Descriptor.Properties.Property<Message,T> property)
Returns the value associated with the passed property, or null if the no matching property is
found.
|
<T> Descriptor.Properties<Message> |
withProperty(Descriptor.Properties.Property<Message,T> property,
T value) |
public <T> T getValueOf(Descriptor.Properties.Property<Message,T> property)
property
- The property to look up.ClassCastException
- if the value stored in the properties map cannot be cast to the
property's expected type.public <T> Descriptor.Properties<Message> withProperty(Descriptor.Properties.Property<Message,T> property, T value)