public class Filter
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
name
The name of the filter.
|
private java.util.List<java.lang.String> |
values
The filter value.
|
Constructor and Description |
---|
Filter() |
Modifier and Type | Method and Description |
---|---|
Filter |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getName()
The name of the filter.
|
java.util.List<java.lang.String> |
getValues()
The filter value.
|
int |
hashCode() |
void |
setName(java.lang.String name)
The name of the filter.
|
void |
setValues(java.util.Collection<java.lang.String> values)
The filter value.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
Filter |
withName(java.lang.String name)
The name of the filter.
|
Filter |
withValues(java.util.Collection<java.lang.String> values)
The filter value.
|
Filter |
withValues(java.lang.String... values)
The filter value.
|
private java.lang.String name
The name of the filter.
private java.util.List<java.lang.String> values
The filter value.
public void setName(java.lang.String name)
The name of the filter.
name
- The name of the filter.public java.lang.String getName()
The name of the filter.
public Filter withName(java.lang.String name)
The name of the filter.
name
- The name of the filter.public java.util.List<java.lang.String> getValues()
The filter value.
public void setValues(java.util.Collection<java.lang.String> values)
The filter value.
values
- The filter value.public Filter withValues(java.lang.String... values)
The filter value.
NOTE: This method appends the values to the existing list (if
any). Use setValues(java.util.Collection)
or
withValues(java.util.Collection)
if you want to override the
existing values.
values
- The filter value.public Filter withValues(java.util.Collection<java.lang.String> values)
The filter value.
values
- The filter value.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 Filter clone()
clone
in class java.lang.Object