public final class Insertions
extends java.lang.Object
Insertions.| Modifier and Type | Field and Description |
|---|---|
static Insertions |
EMPTY |
static Insertions |
STANDARD_INSERTIONS
The standard insertions.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
Insertion |
get(java.lang.String name)
Returns the
Insertion registered under the given name, or null if no such
Insertion exists in this Insertions instance. |
int |
hashCode() |
Insertions |
mergeWith(Insertions other)
Returns a new
Filters instance that combines this instance with the filters of the other
instance. |
static Insertions |
of(java.util.Collection<Insertion> insertions)
Creates a new
Insertions instance with the given insertions. |
static Insertions |
of(Insertion... insertions)
Returns an
Insertions instance with the given insertions. |
static Insertions |
of(java.util.Map<java.lang.String,Insertion> insertions)
Returns an
Insertions instance with the given insertions. |
java.lang.String |
toString() |
java.util.Collection<Insertion> |
values()
Returns an unmodifiable collection of the stored
Insertions. |
public static final Insertions EMPTY
public static final Insertions STANDARD_INSERTIONS
public static Insertions of(java.util.Collection<Insertion> insertions)
Insertions instance with the given insertions.insertions - The insertions to add.public static Insertions of(Insertion... insertions)
Insertions instance with the given insertions.insertions - The insertions to add.public static Insertions of(java.util.Map<java.lang.String,Insertion> insertions)
Insertions instance with the given insertions.insertions - The insertions to add.public Insertions mergeWith(Insertions 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 Insertion get(java.lang.String name)
Insertion registered under the given name, or null if no such
Insertion exists in this Insertions instance.name - The name of the Insertion.Copyright © 2012–2023. All rights reserved.