public final class Filters
extends java.lang.Object
Filters.| Modifier and Type | Field and Description |
|---|---|
static Filters |
DEFAULT_FILTERS |
static Filters |
EMPTY |
static Filters |
JEKYLL_FILTERS |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
Filter |
get(java.lang.String name)
|
java.util.Map<java.lang.String,Filter> |
getMap()
Returns the filters as an unmodifiable
Map. |
int |
hashCode() |
Filters |
mergeWith(Filters other)
Returns a new
Filters instance that combines this instance with the filters of the other
instance. |
static Filters |
of(java.util.Collection<Filter> filters)
Returns a
Filters instance with the given filters. |
static Filters |
of(Filter... filters)
Returns
Filters instance with the given filters. |
static Filters |
of(java.util.Map<java.lang.String,Filter> filters)
Returns a
Filters instance with the given filters. |
java.lang.String |
toString() |
java.util.Collection<Filter> |
values()
Returns an unmodifiable collection of all Filters registered in this instance.
|
public static final Filters EMPTY
public static Filters DEFAULT_FILTERS
public static Filters JEKYLL_FILTERS
public static Filters of(java.util.Collection<Filter> filters)
Filters instance with the given filters.filters - The filters to add.public static Filters of(java.util.Map<java.lang.String,Filter> filters)
Filters instance with the given filters.filters - The filters to add.public static Filters of(Filter... filters)
Filters instance with the given filters.filters - The filters to add.public java.util.Map<java.lang.String,Filter> getMap()
Map. The keys are the Filter.name.public Filters mergeWith(Filters other)
Filters instance that combines this instance with the filters of the other
instance.
If there are filters with the same name in both instances, then the other filter takes
precedence.other - The other Filters instance.public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic Filter get(java.lang.String name)
Filter registered under the given name, or null if no such
Filter exists in this Filters instance.name - The name of the Filter.public java.util.Collection<Filter> values()
Copyright © 2012–2023. All rights reserved.