|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.schmizz.sshj.common.Factory.Named.Util
public static class Factory.Named.Util
Utility functions
| Constructor Summary | |
|---|---|
Factory.Named.Util()
|
|
| Method Summary | ||
|---|---|---|
static
|
create(List<Factory.Named<T>> factories,
String name)
Creates an object by picking a factory from factories that is identified by name from a
list of named factories. |
|
static
|
get(List<Factory.Named<T>> factories,
String name)
Retrieve a particular factory as identified by name from a list of named factories. |
|
static
|
getNames(List<Factory.Named<T>> factories)
Get a comma-delimited string containing the factory names from the given list of factories. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Factory.Named.Util()
| Method Detail |
|---|
public static <T> T create(List<Factory.Named<T>> factories,
String name)
factories that is identified by name from a
list of named factories. Uses the first match.
T - type of the factoriesfactories - list of available factoriesname - name of the desired factory
T or null if there was no match
public static <T> Factory.Named<T> get(List<Factory.Named<T>> factories,
String name)
name from a list of named factories.
Returns the first match.
T - type of the factoriesfactories - list of factoriesname - the name of the factory to retrieve
null if there was no matchpublic static <T> List<String> getNames(List<Factory.Named<T>> factories)
factories.
T - type of the factoriesfactories - list of available factories
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||