public class DocumentFilter
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Describes a filter.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
key
The name of the filter.
|
private java.lang.String |
value
The value of the filter.
|
Constructor and Description |
---|
DocumentFilter() |
Modifier and Type | Method and Description |
---|---|
DocumentFilter |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getKey()
The name of the filter.
|
java.lang.String |
getValue()
The value of the filter.
|
int |
hashCode() |
void |
setKey(DocumentFilterKey key)
The name of the filter.
|
void |
setKey(java.lang.String key)
The name of the filter.
|
void |
setValue(java.lang.String value)
The value of the filter.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
DocumentFilter |
withKey(DocumentFilterKey key)
The name of the filter.
|
DocumentFilter |
withKey(java.lang.String key)
The name of the filter.
|
DocumentFilter |
withValue(java.lang.String value)
The value of the filter.
|
private java.lang.String key
The name of the filter.
private java.lang.String value
The value of the filter.
public void setKey(java.lang.String key)
The name of the filter.
key
- The name of the filter.DocumentFilterKey
public java.lang.String getKey()
The name of the filter.
DocumentFilterKey
public DocumentFilter withKey(java.lang.String key)
The name of the filter.
key
- The name of the filter.DocumentFilterKey
public void setKey(DocumentFilterKey key)
The name of the filter.
key
- The name of the filter.DocumentFilterKey
public DocumentFilter withKey(DocumentFilterKey key)
The name of the filter.
key
- The name of the filter.DocumentFilterKey
public void setValue(java.lang.String value)
The value of the filter.
value
- The value of the filter.public java.lang.String getValue()
The value of the filter.
public DocumentFilter withValue(java.lang.String value)
The value of the filter.
value
- The value of the filter.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 DocumentFilter clone()
clone
in class java.lang.Object