public class DuplicationStrategyImpl extends java.lang.Object implements DuplicationStrategy
DuplicationStrategy.Action
Modifier and Type | Field and Description |
---|---|
static DuplicationStrategyImpl |
INSTANCE |
Constructor and Description |
---|
DuplicationStrategyImpl() |
Modifier and Type | Method and Description |
---|---|
boolean |
areMatch(java.lang.Object listener,
java.lang.Object original)
Are the two listener instances considered a duplication?
|
DuplicationStrategy.Action |
getAction()
How should a duplication be handled?
|
public static final DuplicationStrategyImpl INSTANCE
public boolean areMatch(java.lang.Object listener, java.lang.Object original)
DuplicationStrategy
areMatch
in interface DuplicationStrategy
listener
- The listener we are currently trying to registeroriginal
- An already registered listenerpublic DuplicationStrategy.Action getAction()
DuplicationStrategy
getAction
in interface DuplicationStrategy
Copyright © 2001-2018 Red Hat, Inc. All Rights Reserved.