public class ListenerDescription extends Object implements Serializable, Cloneable
The policies enabled for a listener.
Constructor and Description |
---|
ListenerDescription() |
Modifier and Type | Method and Description |
---|---|
ListenerDescription |
clone() |
boolean |
equals(Object obj) |
Listener |
getListener() |
List<String> |
getPolicyNames()
The policies.
|
int |
hashCode() |
void |
setListener(Listener listener) |
void |
setPolicyNames(Collection<String> policyNames)
The policies.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
ListenerDescription |
withListener(Listener listener) |
ListenerDescription |
withPolicyNames(Collection<String> policyNames)
The policies.
|
ListenerDescription |
withPolicyNames(String... policyNames)
The policies.
|
public void setListener(Listener listener)
listener
- public Listener getListener()
public ListenerDescription withListener(Listener listener)
listener
- public List<String> getPolicyNames()
The policies. If there are no policies enabled, the list is empty.
public void setPolicyNames(Collection<String> policyNames)
The policies. If there are no policies enabled, the list is empty.
policyNames
- The policies. If there are no policies enabled, the list is empty.public ListenerDescription withPolicyNames(String... policyNames)
The policies. If there are no policies enabled, the list is empty.
NOTE: This method appends the values to the existing list (if
any). Use setPolicyNames(java.util.Collection)
or
withPolicyNames(java.util.Collection)
if you want to override
the existing values.
policyNames
- The policies. If there are no policies enabled, the list is empty.public ListenerDescription withPolicyNames(Collection<String> policyNames)
The policies. If there are no policies enabled, the list is empty.
policyNames
- The policies. If there are no policies enabled, the list is empty.public String toString()
toString
in class Object
Object.toString()
public ListenerDescription clone()
Copyright © 2018. All rights reserved.