Class Converter
java.lang.Object
aQute.lib.converter.Converter
General Java type converter from an object to any type. Supports number
conversion
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> Tcnv(TypeReference<T> tr, Object source) static <T> Tstatic Object<T> Tconvert(TypeReference<T> type, Object o) <T> Thook(Type type, Converter.Hook hook) static booleanisMultiple(Class<?> c) Return if the class's instances can hold multiple values.static booleanisMultiple(Type c) Return if the class's instances can hold multiple values.static String<T> TConvert a map to an interface.voidvoidsetFatalIsException(boolean b) Collection<?> Map<?, ?>
-
Constructor Details
-
Converter
public Converter()
-
-
Method Details
-
convert
-
convert
- Throws:
Exception
-
convert
-
array
-
toCollection
-
toMap
-
setFatalIsException
public void setFatalIsException(boolean b) -
hook
-
proxy
-
mangleMethodName
-
cnv
- Throws:
Exception
-
cnv
-
cnv
-
isMultiple
Return if the class's instances can hold multiple values.- Parameters:
c- the class to test- Returns:
- true if the class's instances can hold multiple values
-
isMultiple
Return if the class's instances can hold multiple values.- Parameters:
c- the class to test- Returns:
- true if the class's instances can hold multiple values
-
setBase
-