| Modifier and Type | Field and Description |
|---|---|
| public static final Comparator | BY_NAME_COMPARATOR
Compares 2 |
| public static final Function | NAME_EXTRACTOR
Returns the value of |
| Modifier and Type | Method and Description |
|---|---|
| public static < The generic resource type R extends NamedResource> R | Returns: The first resource whose name matches the parameter (by invokingComparator#compare(Object, Object) - null if no match foundName of the resource - ignored if name, Comparator<? super String> null/emptyThe c, Collection<? extends R> Comparator to decide whether the NamedResource#getName() matches the
name parameterThe resources)NamedResource to check - ignored if null/empty
|
| public static <R extends NamedResource> R | findFirstMatchByName(Collection<String> names, Comparator<? super String> c, Collection<? extends R> resources)
|
| public String | |
| public static List | Returns: AList of all the factories names - in same order as they appear in the input
collectionThe named resources resources)
|
| public static String | Returns: A comma separated list of factory nameslist of available resources resources)
|
| public static NamedResource | Returns: The wrapper instanceThe name value to wrap name)Wraps a name value inside a |
| public static < The generic resource type R extends NamedResource> R | Returns: the removed resource from the list ornull if not in the listName of the resource - ignored if name, Comparator<? super String> null/emptyThe c, Collection<? extends R> Comparator to decide whether the NamedResource#getName() matches the
name parameterThe resources)NamedResource to check - ignored if null/emptyRemove the resource identified by the name from the list. |
| public static int |
| BY_NAME_COMPARATOR | back to summary |
|---|---|
| public static final Comparator<NamedResource> BY_NAME_COMPARATOR Compares 2 | |
| NAME_EXTRACTOR | back to summary |
|---|---|
| public static final Function<NamedResource, String> NAME_EXTRACTOR Returns the value of | |
| findByName | back to summary |
|---|---|
public static <R extends NamedResource> R findByName(String name, Comparator<? super String> c, Collection<? extends R> resources)
| |
| findFirstMatchByName | back to summary |
|---|---|
| public static <R extends NamedResource> R findFirstMatchByName(Collection<String> names, Comparator<? super String> c, Collection<? extends R> resources) | |
| getName | back to summary |
|---|---|
public String getName()
| |
| getNameList | back to summary |
|---|---|
public static List
| |
| getNames | back to summary |
|---|---|
public static String getNames(Collection<? extends NamedResource> resources)
| |
| ofName | back to summary |
|---|---|
| public static NamedResource ofName(String name) Wraps a name value inside a
| |
| removeByName | back to summary |
|---|---|
| public static <R extends NamedResource> R removeByName(String name, Comparator<? super String> c, Collection<? extends R> resources) Remove the resource identified by the name from the list.
| |
| safeCompareByName | back to summary |
|---|---|
| public static int safeCompareByName(NamedResource r1, NamedResource r2, boolean caseSensitive) | |