V - the type of the topic valuespublic static class ValueTypeAssertion.WithValueTypeAssertion<V> extends Object implements ValueTypeAssertion<V>
NamedTopic.Option for asserting the type
of values used with a NamedTopic.ValueTypeAssertion.WithValueTypeAssertion<V>WITH_RAW_TYPES, WITHOUT_TYPE_CHECKING| Constructor | Description |
|---|---|
WithValueTypeAssertion(Class<V> clsValue) |
Constructs
ValueTypeAssertion.WithValueTypeAssertion |
| Modifier and Type | Method | Description |
|---|---|---|
void |
assertTypeSafety(String sTopicName,
TopicMapping mapping) |
Asserts the type compatibility of a topic given the
TopicMapping that defines the
topic. |
boolean |
equals(Object o) |
|
String |
getValueClassName() |
Get Value ClassName
|
int |
hashCode() |
|
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitwithoutTypeChecking, withRawTypes, withTypepublic WithValueTypeAssertion(Class<V> clsValue)
ValueTypeAssertion.WithValueTypeAssertionclsValue - the desired type of the values within the topicpublic void assertTypeSafety(String sTopicName, TopicMapping mapping) throws IllegalArgumentException
TopicMapping that defines the
topic.assertTypeSafety in interface ValueTypeAssertion<V>sTopicName - the name of the topicmapping - the ResourceMappingIllegalArgumentException - when type used with the ValueTypeAssertion are illegal according to the
configurationpublic String getValueClassName()