Class PerfectMatch
- java.lang.Object
-
- com.hybris.cockpitng.admin.strategy.socket.impl.TypeMatch
-
- com.hybris.cockpitng.admin.strategy.socket.impl.PerfectMatch
-
- All Implemented Interfaces:
WidgetSocketMatchStrategy
public class PerfectMatch extends TypeMatch
-
-
Constructor Summary
Constructors Constructor Description PerfectMatch()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetStrategyCode()Identifier of the strategy.booleanmatches(WidgetSocket socketA, WidgetSocket socketB)Method checks if two sockets match, ie.-
Methods inherited from class com.hybris.cockpitng.admin.strategy.socket.impl.TypeMatch
setCockpitAdminService
-
-
-
-
Method Detail
-
getStrategyCode
public java.lang.String getStrategyCode()
Description copied from interface:WidgetSocketMatchStrategyIdentifier of the strategy. It should be unique.- Specified by:
getStrategyCodein interfaceWidgetSocketMatchStrategy- Overrides:
getStrategyCodein classTypeMatch- Returns:
- identifier of the strategy
-
matches
public boolean matches(WidgetSocket socketA, WidgetSocket socketB)
Description copied from interface:WidgetSocketMatchStrategyMethod checks if two sockets match, ie. may be connected.- Specified by:
matchesin interfaceWidgetSocketMatchStrategy- Overrides:
matchesin classTypeMatch- Parameters:
socketA- a socketsocketB- a socket- Returns:
- true if the two sockets match
-
-