Package com.tangosol.net
Class ValueTypeAssertion.WithValueTypeAssertion<V>
- java.lang.Object
-
- com.tangosol.net.ValueTypeAssertion.WithValueTypeAssertion<V>
-
- Type Parameters:
V- the type of the topic values
- All Implemented Interfaces:
NamedCollection.Option,ValueTypeAssertion<V>
- Enclosing interface:
- ValueTypeAssertion<V>
public static class ValueTypeAssertion.WithValueTypeAssertion<V> extends Object implements ValueTypeAssertion<V>
Defines aNamedCollection.Optionfor asserting the type of values used with aNamedTopic.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.tangosol.net.ValueTypeAssertion
ValueTypeAssertion.WithValueTypeAssertion<V>
-
-
Field Summary
-
Fields inherited from interface com.tangosol.net.ValueTypeAssertion
WITH_RAW_TYPES, WITHOUT_TYPE_CHECKING
-
-
Constructor Summary
Constructors Constructor Description WithValueTypeAssertion(Class<V> clsValue)ConstructsValueTypeAssertion.WithValueTypeAssertion
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidassertTypeSafety(String sTopicName, TopicMapping mapping)Asserts the type compatibility of a topic given theTopicMappingthat defines the topic.booleanequals(Object o)StringgetValueClassName()Get Value ClassNameinthashCode()StringtoString()
-
-
-
Constructor Detail
-
WithValueTypeAssertion
public WithValueTypeAssertion(Class<V> clsValue)
ConstructsValueTypeAssertion.WithValueTypeAssertion- Parameters:
clsValue- the desired type of the values within the topic
-
-
Method Detail
-
assertTypeSafety
public void assertTypeSafety(String sTopicName, TopicMapping mapping) throws IllegalArgumentException
Asserts the type compatibility of a topic given theTopicMappingthat defines the topic.- Specified by:
assertTypeSafetyin interfaceValueTypeAssertion<V>- Parameters:
sTopicName- the name of the topicmapping- theResourceMapping- Throws:
IllegalArgumentException- when type used with theValueTypeAssertionare illegal according to the configuration
-
getValueClassName
public String getValueClassName()
Get Value ClassName- Returns:
- Value class name
-
-