Package org.jgrapes.core
Class ClassChannel
java.lang.Object
org.jgrapes.core.ClassChannel
- Direct Known Subclasses:
Handler.NoChannel
This class is the root base class for channels that use their class (type)
as value for matching (see
Eligible).-
Nested Class Summary
Nested classes/interfaces inherited from interface org.jgrapes.core.Channel
Channel.Default -
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the class of this channel as value.booleaninthashCode()booleanisEligibleFor(Object value) Returnstrueif thevalueis the same class or a base class of this channel’s class.toString()
-
Constructor Details
-
ClassChannel
public ClassChannel()
-
-
Method Details
-
defaultCriterion
Returns the class of this channel as value.- Specified by:
defaultCriterionin interfaceEligible- Returns:
- the class of this channel
- See Also:
-
isEligibleFor
Returnstrueif thevalueis the same class or a base class of this channel’s class.- Specified by:
isEligibleForin interfaceChannel- Specified by:
isEligibleForin interfaceEligible- Parameters:
value- the criterion- Returns:
- true, if is eligible for
- See Also:
-
hashCode
-
equals
-
toString
-