public class CommandFilter extends Object implements Serializable, Cloneable
Describes a command filter.
Constructor and Description |
---|
CommandFilter() |
Modifier and Type | Method and Description |
---|---|
CommandFilter |
clone() |
boolean |
equals(Object obj) |
String |
getKey()
The name of the filter.
|
String |
getValue()
The filter value.
|
int |
hashCode() |
void |
setKey(CommandFilterKey key)
The name of the filter.
|
void |
setKey(String key)
The name of the filter.
|
void |
setValue(String value)
The filter value.
|
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(String key)
The name of the filter.
|
CommandFilter |
withValue(String value)
The filter value.
|
public void setKey(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 String getKey()
The name of the filter. For example, requested date and time.
CommandFilterKey
public CommandFilter withKey(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(String value)
The filter value. For example: June 30, 2015.
value
- The filter value. For example: June 30, 2015.public String getValue()
The filter value. For example: June 30, 2015.
public CommandFilter withValue(String value)
The filter value. For example: June 30, 2015.
value
- The filter value. For example: June 30, 2015.public String toString()
toString
in class Object
Object.toString()
public CommandFilter clone()
Copyright © 2018. All rights reserved.