Interface UToStringComponent

All Known Implementing Classes:
UArrayComponent, UCollectionComponent, UEntryComponent, UGeneralComponent, UThrowableComponent

public interface UToStringComponent
  • Method Details

    • manager

      @NotNull default @NotNull UToStringManager manager()
      The parent string manager
      Returns:
      the UToStringManagerImpl instance
    • arraysOnly

      boolean arraysOnly()
      The method used to identify if the current instance only prints arrays of data.
      Returns:
      true if the instance only prints arrays of data or false otherwise
    • supportedElements

      Class<?>[] supportedElements()
      Gets the classes supported by that instance
      Returns:
      the supported classes
    • toString

      @NotNull @NotNull String toString(@NotNull @NotNull Object object, boolean verbose)
      Generates a text with the representation of the object. Very similar to what the Object.toString() method does, but it ensures that all objects have an easily identifiable representation.
      Parameters:
      object - the object that you want to get the text representation
      verbose - option used to determine if the output will be long or simple
      Returns:
      object string representation