Class UEntryComponent

java.lang.Object
ushiosan.jvm.internal.print.components.UEntryComponent
All Implemented Interfaces:
UToStringComponent

public final class UEntryComponent extends Object implements UToStringComponent
  • Method Details

    • getInstance

      @NotNull public static @NotNull UToStringComponent getInstance()
      Generates an instance of the specified class and saves it so that only one instance exists throughout the entire program. If the JVM deletes such an instance, it is recreated.
      Returns:
      the object instance
    • arraysOnly

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

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

      @NotNull public @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.
      Specified by:
      toString in interface UToStringComponent
      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