public class ListenerDescription extends Object implements Serializable
The policies enabled for a listener.
Constructor and Description |
---|
ListenerDescription() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
Listener |
getListener()
The listener.
|
List<String> |
getPolicyNames()
The policies.
|
int |
hashCode() |
void |
setListener(Listener listener)
The 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)
The listener.
|
ListenerDescription |
withPolicyNames(Collection<String> policyNames)
The policies.
|
ListenerDescription |
withPolicyNames(String... policyNames)
The policies.
|
public Listener getListener()
The listener.
The listener.
public void setListener(Listener listener)
The listener.
listener
- The listener.
public ListenerDescription withListener(Listener listener)
The listener.
Returns a reference to this object so that method calls can be chained together.
listener
- The listener.
public List<String> getPolicyNames()
The policies. If there are no policies enabled, the list is empty.
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.
Returns a reference to this object so that method calls can be chained together.
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.
Returns a reference to this object so that method calls can be chained together.
policyNames
- The policies. If there are no policies enabled, the list is empty.
public String toString()
toString
in class Object
Object.toString()
Copyright © 2018. All rights reserved.