Package liqp.filters
Class Filters
java.lang.Object
liqp.filters.Filters
An immutable map of
Filters.-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionbooleangetMap()Returns the filters as an unmodifiableMap.inthashCode()Returns a newFiltersinstance that combines this instance with the given filters.Returns a newFiltersinstance that combines this instance with the filters of the other instance.static Filtersof(Collection<Filter> filters) Returns aFiltersinstance with the given filters.static FiltersReturns aFiltersinstance with the given filters.static FiltersReturnsFiltersinstance with the given filters.toString()values()Returns an unmodifiable collection of all Filters registered in this instance.
-
Field Details
-
EMPTY
-
DEFAULT_FILTERS
-
JEKYLL_FILTERS
-
-
Method Details
-
of
Returns aFiltersinstance with the given filters.- Parameters:
filters- The filters to add.
-
of
Returns aFiltersinstance with the given filters.- Parameters:
filters- The filters to add.
-
of
ReturnsFiltersinstance with the given filters.- Parameters:
filters- The filters to add.
-
getMap
Returns the filters as an unmodifiableMap. The keys are theFilter.name.- Returns:
- The map.
-
mergeWith
Returns a newFiltersinstance that combines this instance with the filters of the other instance. If there are filters with the same name in both instances, then theotherfilter takes precedence.- Parameters:
other- The other Filters instance.- Returns:
- A new, merged instance.
-
mergeWith
Returns a newFiltersinstance that combines this instance with the given filters. If there are filters with the same name in both instances, then theotherfilter takes precedence.- Parameters:
other- The other Filters instance.- Returns:
- A new, merged instance.
-
hashCode
public int hashCode() -
equals
-
toString
-
get
Returns theFilterregistered under the given name, ornullif no suchFilterexists in thisFiltersinstance.- Parameters:
name- The name of theFilter.- Returns:
- The instance.
-
values
Returns an unmodifiable collection of all Filters registered in this instance.- Returns:
- The collection.
-