Package liqp
Class Insertions
java.lang.Object
liqp.Insertions
An immutable map of
Insertions.- Author:
- Christian Kohlschütter
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Insertionsstatic final InsertionsThe standard insertions.static final InsertionsThe standard insertions. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns theInsertionregistered under the given name, ornullif no suchInsertionexists in thisInsertionsinstance.inthashCode()mergeWith(Insertions other) Returns a newFiltersinstance that combines this instance with the filters of the other instance.static Insertionsof(Collection<Insertion> insertions) Creates a newInsertionsinstance with the given insertions.static InsertionsReturns anInsertionsinstance with the given insertions.static InsertionsReturns anInsertionsinstance with the given insertions.toString()values()Returns an unmodifiable collection of the storedInsertions.
-
Field Details
-
EMPTY
-
STANDARD_INSERTIONS
The standard insertions. -
JEKYLL_INSERTIONS
The standard insertions.
-
-
Method Details
-
of
Creates a newInsertionsinstance with the given insertions.- Parameters:
insertions- The insertions to add.
-
of
Returns anInsertionsinstance with the given insertions.- Parameters:
insertions- The insertions to add.
-
of
Returns anInsertionsinstance with the given insertions.- Parameters:
insertions- The insertions to add.
-
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.
-
hashCode
public int hashCode() -
equals
-
toString
-
get
Returns theInsertionregistered under the given name, ornullif no suchInsertionexists in thisInsertionsinstance.- Parameters:
name- The name of theInsertion.- Returns:
- The instance.
-
values
Returns an unmodifiable collection of the storedInsertions.- Returns:
- The collection.
-