public class CommandFilter
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Describes a command filter.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
key
The name of the filter.
|
private java.lang.String |
value
The filter value.
|
Constructor and Description |
---|
CommandFilter() |
Modifier and Type | Method and Description |
---|---|
CommandFilter |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getKey()
The name of the filter.
|
java.lang.String |
getValue()
The filter value.
|
int |
hashCode() |
void |
setKey(CommandFilterKey key)
The name of the filter.
|
void |
setKey(java.lang.String key)
The name of the filter.
|
void |
setValue(java.lang.String value)
The filter value.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
CommandFilter |
withKey(CommandFilterKey key)
The name of the filter.
|
CommandFilter |
withKey(java.lang.String key)
The name of the filter.
|
CommandFilter |
withValue(java.lang.String value)
The filter value.
|
private java.lang.String key
The name of the filter. For example, requested date and time.
private java.lang.String value
The filter value. For example: June 30, 2015.
public void setKey(java.lang.String key)
The name of the filter. For example, requested date and time.
key
- The name of the filter. For example, requested date and time.CommandFilterKey
public java.lang.String getKey()
The name of the filter. For example, requested date and time.
CommandFilterKey
public CommandFilter withKey(java.lang.String key)
The name of the filter. For example, requested date and time.
key
- The name of the filter. For example, requested date and time.CommandFilterKey
public void setKey(CommandFilterKey key)
The name of the filter. For example, requested date and time.
key
- The name of the filter. For example, requested date and time.CommandFilterKey
public CommandFilter withKey(CommandFilterKey key)
The name of the filter. For example, requested date and time.
key
- The name of the filter. For example, requested date and time.CommandFilterKey
public void setValue(java.lang.String value)
The filter value. For example: June 30, 2015.
value
- The filter value. For example: June 30, 2015.public java.lang.String getValue()
The filter value. For example: June 30, 2015.
public CommandFilter withValue(java.lang.String value)
The filter value. For example: June 30, 2015.
value
- The filter value. For example: June 30, 2015.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public CommandFilter clone()
clone
in class java.lang.Object