Class AbstractRequestCondition<T extends AbstractRequestCondition<T>>
java.lang.Object
org.springframework.web.reactive.result.condition.AbstractRequestCondition<T>
- Type Parameters:
- T- the type of objects that this RequestCondition can be combined with and compared to
- All Implemented Interfaces:
- RequestCondition<T>
- Direct Known Subclasses:
- CompositeRequestCondition,- ConsumesRequestCondition,- HeadersRequestCondition,- ParamsRequestCondition,- PatternsRequestCondition,- ProducesRequestCondition,- RequestConditionHolder,- RequestMethodsRequestCondition,- VersionRequestCondition
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().- Since:
- 5.0
- Author:
- Rossen Stoyanchev
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionbooleanprotected 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.toString()Methods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.springframework.web.reactive.result.condition.RequestConditioncombine, compareTo, getMatchingCondition
- 
Constructor Details- 
AbstractRequestConditionpublic AbstractRequestCondition()
 
- 
- 
Method Details- 
isEmptypublic boolean isEmpty()Indicates whether this condition is empty, i.e. whether it contains any discrete items.- Returns:
- trueif empty;- falseotherwise
 
- 
getContentReturn the discrete items a request condition is composed of.For example URL patterns, HTTP request methods, param expressions, etc. - Returns:
- a collection of objects (never null)
 
- 
getToStringInfixThe notation to use when printing discrete items of content.For example " || "for URL patterns or" && "for param expressions.
- 
equals
- 
hashCodepublic int hashCode()
- 
toString
 
-