T
- the type of objects that this RequestCondition can be combined
with and compared topublic 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 other) |
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 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.
public boolean equals(@Nullable java.lang.Object other)
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