java.lang.Object
ushiosan.jvm.internal.print.components.UEntryComponent
- All Implemented Interfaces:
UToStringComponent
-
Method Summary
Modifier and TypeMethodDescriptionbooleanThe method used to identify if the current instance only prints arrays of data.static @NotNull UToStringComponentGenerates an instance of the specified class and saves it so that only one instance exists throughout the entire program.Class<?>[]Gets the classes supported by that instanceGenerates a text with the representation of the object.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ushiosan.jvm.print.UToStringComponent
manager
-
Method Details
-
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:
arraysOnlyin interfaceUToStringComponent- Returns:
trueif the instance only prints arrays of data orfalseotherwise
-
supportedElements
Gets the classes supported by that instance- Specified by:
supportedElementsin interfaceUToStringComponent- Returns:
- the supported classes
-
toString
Generates a text with the representation of the object. Very similar to what theObject.toString()method does, but it ensures that all objects have an easily identifiable representation.- Specified by:
toStringin interfaceUToStringComponent- Parameters:
object- the object that you want to get the text representationverbose- option used to determine if the output will be long or simple- Returns:
- object string representation
-