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 and Description |
---|
WithValueTypeAssertion(Class<V> clsValue)
Constructs
ValueTypeAssertion.WithValueTypeAssertion |
Modifier and Type | Method and 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, wait
withoutTypeChecking, withRawTypes, withType
public WithValueTypeAssertion(Class<V> clsValue)
ValueTypeAssertion.WithValueTypeAssertion
clsValue
- 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 ResourceMapping
IllegalArgumentException
- when type used with the ValueTypeAssertion
are illegal according to the
configurationpublic String getValueClassName()