| Package | Description |
|---|---|
| eu.dnetlib.miscutils.collections | |
| eu.dnetlib.miscutils.functional | |
| eu.dnetlib.miscutils.functional.string | |
| eu.dnetlib.miscutils.functional.xml |
| Modifier and Type | Interface and Description |
|---|---|
interface |
Filter<T> |
| Modifier and Type | Class and Description |
|---|---|
class |
TypeFilter<T> |
| Modifier and Type | Method and Description |
|---|---|
static <X> Iterable<X> |
FilteredCollection.filter(Iterable<X> coll,
UnaryFunction<Boolean,X> filter)
Static helper function, makes usage shorter.
|
static <X> Iterable<X> |
FilteredCollection.filter(X[] coll,
UnaryFunction<Boolean,X> filter) |
static <X> List<X> |
FilteredCollection.listFilter(Iterable<X> coll,
UnaryFunction<Boolean,X> filter)
Static helper function, makes common usage shorter.
|
static <X> List<X> |
FilteredCollection.listFilter(X[] coll,
UnaryFunction<Boolean,X> filter) |
static <X,Y> List<X> |
MappedCollection.listMap(Iterable<Y> coll,
UnaryFunction<X,Y> mapper)
Static helper function, makes common usage shorter.
|
static <X,Y> List<X> |
MappedCollection.listMap(Y[] coll,
UnaryFunction<X,Y> mapper) |
static <X,Y> Iterable<X> |
MappedCollection.map(Iterable<Y> coll,
UnaryFunction<X,Y> mapper)
Static helper function, makes usage shorter.
|
static <X,Y> Iterable<X> |
MappedCollection.map(Y[] coll,
UnaryFunction<X,Y> mapper) |
| Constructor and Description |
|---|
FilteredCollection(Collection<T> coll,
UnaryFunction<Boolean,T> filter) |
FilteredCollection(Iterable<T> coll,
UnaryFunction<Boolean,T> filter) |
FilteredCollection(T[] coll,
UnaryFunction<Boolean,T> filter) |
MappedCollection(Collection<K> coll,
UnaryFunction<T,K> mapper)
Compatibility with pre 0.0.3 cnr-misc-utils.
|
MappedCollection(Iterable<K> coll,
UnaryFunction<T,K> mapper) |
MappedCollection(K[] coll,
UnaryFunction<T,K> mapper) |
| Modifier and Type | Class and Description |
|---|---|
class |
CompositeUnaryFunction<T,K> |
class |
IdentityFunction<T>
Identity function
|
class |
ThreadSafeUnaryFunction<T,K>
ThreadSafeUnaryFunction maintains a ThreadLocal of a UnaryFunction and
delegates the application to the thread local function.
|
| Modifier and Type | Field and Description |
|---|---|
protected UnaryFunction<T,K> |
CompositeUnaryFunction.function |
| Modifier and Type | Method and Description |
|---|---|
static <A,B> UnaryFunction<A,B> |
Functional.construct(Class<? extends A> clazz,
Class<? extends B> argumentType)
Given a class and a constructor type, return a unary function which invokes the constructor of that class.
|
| Modifier and Type | Method and Description |
|---|---|
<X> CompositeUnaryFunction<T,X> |
CompositeUnaryFunction.of(UnaryFunction<K,X> comp) |
| Constructor and Description |
|---|
CompositeUnaryFunction(UnaryFunction<T,K> function) |
| Constructor and Description |
|---|
ThreadSafeUnaryFunction(Factory<? extends UnaryFunction<T,K>> functionFactory)
Builds a new ThreadSafeUnaryFunction.
|
ThreadSafeUnaryFunction(ThreadLocal<? extends UnaryFunction<T,K>> localFunction)
Builds a new ThreadSafeUnaryFunction.
|
| Modifier and Type | Class and Description |
|---|---|
class |
EscapeHtml |
class |
EscapeXml |
class |
FastEscapeXml |
class |
Sanitizer
Removes control characters from a string
|
class |
UnescapeHtml |
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractApplyXslt<K>
This function applies a stylesheet to something which can be transformed to a javax.xml.Source.
|
class |
ApplyXslt
Applies a stylesheet to a XML string and returns an XML string.
|
class |
ApplyXsltDom
Applies a stylesheet to a XML DOM and returns an XML string.
|
class |
ApplyXsltDom4j
Applies a stylesheet to a XML DOM4j and returns an XML string.
|
class |
IndentXmlString
The Class IndentXmlString.
|
class |
SerializeXml |
class |
TryIndentXmlString
The Class TryIndentXmlString.
|
Copyright © 2019. All rights reserved.