public abstract class AbstractRequestCondition<T extends AbstractRequestCondition<T>> extends java.lang.Object implements RequestCondition<T>
RequestCondition
types providing implementations of
equals(Object)
, hashCode()
, and toString()
.Constructor and Description |
---|
AbstractRequestCondition() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
protected abstract java.util.Collection<?> |
getContent()
Return the discrete items a request condition is composed of.
|
protected abstract java.lang.String |
getToStringInfix()
The notation to use when printing discrete items of content.
|
int |
hashCode() |
boolean |
isEmpty()
Indicates whether this condition is empty, i.e.
|
java.lang.String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
combine, compareTo, getMatchingCondition
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public boolean isEmpty()
true
if empty; false
otherwiseprotected abstract java.util.Collection<?> getContent()
For example URL patterns, HTTP request methods, param expressions, etc.
null
protected abstract java.lang.String getToStringInfix()
For example " || "
for URL patterns or " && "
for param expressions.