Package com.swiftmq.impl.streams
Class TypeConverter
java.lang.Object
com.swiftmq.impl.streams.TypeConverter
Convenience class to convert an object into various basic types. It is accessible from
Streams scripts via variable "typeconvert".
- Author:
- IIT Software GmbH, Muenster/Germany, (c) 2020, All Rights Reserved
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Convert an object to Booleandouble
Convert an object to Doubledouble
Convert an object to Floatint
Convert an object to Integerlong
Convert an object to Long
-
Constructor Details
-
TypeConverter
public TypeConverter()
-
-
Method Details
-
toBoolean
Convert an object to Boolean- Parameters:
o
- Object- Returns:
- Boolean
-
toInteger
Convert an object to Integer- Parameters:
o
- Object- Returns:
- Integer
- Throws:
Exception
-
toLong
Convert an object to Long- Parameters:
o
- Object- Returns:
- Long
- Throws:
Exception
-
toDouble
Convert an object to Double- Parameters:
o
- Object- Returns:
- Double
- Throws:
Exception
-
toFloat
Convert an object to Float- Parameters:
o
- Object- Returns:
- Float
- Throws:
Exception
-