Class ReflectionStringifier
java.lang.Object
org.tudalgo.algoutils.tutor.general.stringify.basic.ReflectionStringifier
- All Implemented Interfaces:
Stringifier
A stringifier for transforming reflection object to string objects.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ReflectionStringifierReturns an instance of this classstringifyOrElseNull(Object object) Creates a string representation of the given object ornull, if no string representation can be created.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.tudalgo.algoutils.tutor.general.stringify.Stringifier
orElse, stringify, stringifyOrElseDefault, stringifyOrElseDefault, stringifyOrElseToString
-
Constructor Details
-
ReflectionStringifier
public ReflectionStringifier()
-
-
Method Details
-
getInstance
Returns an instance of this class- Returns:
- the instance of this class
-
stringifyOrElseNull
Description copied from interface:StringifierCreates a string representation of the given object ornull, if no string representation can be created.- Specified by:
stringifyOrElseNullin interfaceStringifier- Parameters:
object- the object to create a string representation for- Returns:
- the string representation of the given object or
null
-