public class DuplicationStrategyImpl extends 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(Object listener,
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(Object listener, 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-2017 Red Hat, Inc. All Rights Reserved.