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.Option
for 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 void
assertTypeSafety(String sTopicName, TopicMapping mapping)
Asserts the type compatibility of a topic given theTopicMapping
that defines the topic.boolean
equals(Object o)
String
getValueClassName()
Get Value ClassNameint
hashCode()
String
toString()
-
-
-
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 theTopicMapping
that defines the topic.- Specified by:
assertTypeSafety
in interfaceValueTypeAssertion<V>
- Parameters:
sTopicName
- the name of the topicmapping
- theResourceMapping
- Throws:
IllegalArgumentException
- when type used with theValueTypeAssertion
are illegal according to the configuration
-
getValueClassName
public String getValueClassName()
Get Value ClassName- Returns:
- Value class name
-
-