类 AbstractRequestCondition<T extends AbstractRequestCondition<T>>
java.lang.Object
cn.taketoday.web.handler.condition.AbstractRequestCondition<T>
- 类型参数:
T- the type of objects that this RequestCondition can be combined with and compared to
- 所有已实现的接口:
RequestCondition<T>
- 直接已知子类:
CompositeRequestCondition,ConsumesRequestCondition,HeadersRequestCondition,ParamsRequestCondition,PathPatternsRequestCondition,ProducesRequestCondition,RequestConditionHolder,RequestMethodsRequestCondition
public abstract class AbstractRequestCondition<T extends AbstractRequestCondition<T>>
extends Object
implements RequestCondition<T>
A base class for
RequestCondition types providing implementations of
equals(Object), hashCode(), and toString().- 从以下版本开始:
- 4.0
- 作者:
- Rossen Stoyanchev
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明booleanprotected abstract Collection<?>Return the discrete items a request condition is composed of.protected abstract StringThe notation to use when printing discrete items of content.inthashCode()booleanisEmpty()Indicates whether this condition is empty, i.e. whether or not it contains any discrete items.toString()从接口继承的方法 cn.taketoday.web.handler.condition.RequestCondition
combine, compareTo, getMatchingCondition
-
构造器详细资料
-
AbstractRequestCondition
public AbstractRequestCondition()
-
-
方法详细资料
-
isEmpty
public boolean isEmpty()Indicates whether this condition is empty, i.e. whether or not it contains any discrete items.- 返回:
trueif empty;falseotherwise
-
getContent
Return the discrete items a request condition is composed of.For example URL patterns, HTTP request methods, param expressions, etc.
- 返回:
- a collection of objects (never
null)
-
getToStringInfix
The notation to use when printing discrete items of content.For example
" || "for URL patterns or" && "for param expressions. -
equals
-
hashCode
public int hashCode() -
toString
-