接口 DuplicationStrategy
-
- 所有已知实现类:
DuplicationStrategyImpl
public interface DuplicationStrategyDefines listener duplication checking strategy, both in terms of when a duplication is detected (seeareMatch(java.lang.Object, java.lang.Object)) as well as how to handle a duplication (seegetAction()).- 作者:
- Steve Ebersole
-
-
嵌套类概要
嵌套类 修饰符和类型 接口 说明 static classDuplicationStrategy.ActionThe enumerated list of actions available on duplication match
-
-
-
方法详细资料
-
areMatch
boolean areMatch(Object listener, Object original)
Are the two listener instances considered a duplication?- 参数:
listener- The listener we are currently trying to registeroriginal- An already registered listener- 返回:
- true if the two instances are considered a duplication; false otherwise
-
getAction
DuplicationStrategy.Action getAction()
How should a duplication be handled?- 返回:
- The strategy for handling duplication
-
-