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 a
NamedCollection.Option for asserting the type
of values used with a NamedTopic.-
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
ConstructorsConstructorDescriptionWithValueTypeAssertion(Class<V> clsValue) ConstructsValueTypeAssertion.WithValueTypeAssertion -
Method Summary
Modifier and TypeMethodDescriptionvoidassertTypeSafety(String sTopicName, TopicMapping mapping) Asserts the type compatibility of a topic given theTopicMappingthat defines the topic.booleanGet Value ClassNameinthashCode()toString()
-
Constructor Details
-
WithValueTypeAssertion
ConstructsValueTypeAssertion.WithValueTypeAssertion- Parameters:
clsValue- the desired type of the values within the topic
-
-
Method Details
-
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
Get Value ClassName- Returns:
- Value class name
-
equals
-
hashCode
public int hashCode() -
toString
-