Package com.yahoo.messagebus.routing
Class VerbatimDirective
java.lang.Object
com.yahoo.messagebus.routing.VerbatimDirective
- All Implemented Interfaces:
HopDirective
This class represents a verbatim match within a
Hop
's selector. This is nothing more than a string that will
be used as-is when performing service name lookups.- Author:
- Simon Thoresen Hult
-
Constructor Summary
ConstructorDescriptionVerbatimDirective
(String image) Constructs a new verbatim selector item for a given image. -
Method Summary
Modifier and TypeMethodDescriptionboolean
getImage()
Returns the image to which this is a verbatim match.int
hashCode()
boolean
matches
(HopDirective dir) Returns true if this directive matches another.Returns a string representation of this that can be debugged but not parsed.toString()
-
Constructor Details
-
VerbatimDirective
Constructs a new verbatim selector item for a given image.- Parameters:
image
- The image to assign to this.
-
-
Method Details
-
matches
Description copied from interface:HopDirective
Returns true if this directive matches another.- Specified by:
matches
in interfaceHopDirective
- Parameters:
dir
- The directive to compare this to.- Returns:
- True if this matches the argument.
-
getImage
Returns the image to which this is a verbatim match.- Returns:
- The image.
-
equals
-
hashCode
public int hashCode() -
toString
-
toDebugString
Description copied from interface:HopDirective
Returns a string representation of this that can be debugged but not parsed.- Specified by:
toDebugString
in interfaceHopDirective
- Returns:
- The debug string.
-