public interface TypeNameFilter
A filter can be applied by creating an implementation and declaring it in a file called
/META-INF/services/nl.talsmasoftware.reflection.strings.TypeNameFilters$TypeNameFilter
so it can be picked
up by the Java ServiceLoader
when running on (at least) Java 6 environment.
All calls to TypeNameFilters.filter(String)
will be fed to the registered filter.
Modifier and Type | Field | Description |
---|---|---|
static TypeNameFilter |
IDENTITY |
Constant for 'no filter' or the 'identity function'.
|
Modifier and Type | Method | Description |
---|---|---|
String |
apply(String typeName) |
The type name to be filtered.
|
static final TypeNameFilter IDENTITY
Copyright © 2016–2020 Talsma ICT. All rights reserved.