public class ListenerDescription
extends java.lang.Object
implements java.io.Serializable
The ListenerDescription data type.
| Constructor and Description |
|---|
ListenerDescription()
Default constructor for a new ListenerDescription object.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
Listener |
getListener()
The Listener data type.
|
java.util.List<java.lang.String> |
getPolicyNames()
A list of policies enabled for this listener.
|
int |
hashCode() |
void |
setListener(Listener listener)
The Listener data type.
|
void |
setPolicyNames(java.util.Collection<java.lang.String> policyNames)
A list of policies enabled for this listener.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
ListenerDescription |
withListener(Listener listener)
The Listener data type.
|
ListenerDescription |
withPolicyNames(java.util.Collection<java.lang.String> policyNames)
A list of policies enabled for this listener.
|
ListenerDescription |
withPolicyNames(java.lang.String... policyNames)
A list of policies enabled for this listener.
|
public ListenerDescription()
public Listener getListener()
public void setListener(Listener listener)
listener - The Listener data type.public ListenerDescription withListener(Listener listener)
Returns a reference to this object so that method calls can be chained together.
listener - The Listener data type.public java.util.List<java.lang.String> getPolicyNames()
public void setPolicyNames(java.util.Collection<java.lang.String> policyNames)
policyNames - A list of policies enabled for this listener. An empty list indicates
that no policies are enabled.public ListenerDescription withPolicyNames(java.lang.String... policyNames)
Returns a reference to this object so that method calls can be chained together.
policyNames - A list of policies enabled for this listener. An empty list indicates
that no policies are enabled.public ListenerDescription withPolicyNames(java.util.Collection<java.lang.String> policyNames)
Returns a reference to this object so that method calls can be chained together.
policyNames - A list of policies enabled for this listener. An empty list indicates
that no policies are enabled.public java.lang.String toString()
toString in class java.lang.ObjectObject.toString()public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Object