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
-
Method Summary
Modifier and TypeMethodDescriptionReturns the class of this channel as value.boolean
int
hashCode()
boolean
isEligibleFor
(Object value) Returnstrue
if thevalue
is 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:
defaultCriterion
in interfaceEligible
- Returns:
- the class of this channel
- See Also:
-
isEligibleFor
Returnstrue
if thevalue
is the same class or a base class of this channel’s class.- Specified by:
isEligibleFor
in interfaceChannel
- Specified by:
isEligibleFor
in interfaceEligible
- Parameters:
value
- the criterion- Returns:
- true, if is eligible for
- See Also:
-
hashCode
-
equals
-
toString
-