Class ReflectionStringifier

java.lang.Object
org.tudalgo.algoutils.tutor.general.stringify.basic.ReflectionStringifier
All Implemented Interfaces:
Stringifier

public final class ReflectionStringifier extends Object implements Stringifier
A stringifier for transforming reflection object to string objects.
  • Constructor Details

    • ReflectionStringifier

      public ReflectionStringifier()
  • Method Details

    • getInstance

      public static ReflectionStringifier getInstance()
      Returns an instance of this class
      Returns:
      the instance of this class
    • stringifyOrElseNull

      public String stringifyOrElseNull(Object object)
      Description copied from interface: Stringifier
      Creates a string representation of the given object or null, if no string representation can be created.
      Specified by:
      stringifyOrElseNull in interface Stringifier
      Parameters:
      object - the object to create a string representation for
      Returns:
      the string representation of the given object or null