Package dev.adlin.vts4j.core.event.impl
Record Class ModelOutlineEvent
java.lang.Object
java.lang.Record
dev.adlin.vts4j.core.event.impl.ModelOutlineEvent
- All Implemented Interfaces:
Event
-
Constructor Summary
ConstructorsConstructorDescriptionModelOutlineEvent(String modelName, String modelId, com.google.gson.JsonObject convexHull, com.google.gson.JsonObject convexHullCenter, com.google.gson.JsonObject windowSize) Creates an instance of aModelOutlineEventrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncom.google.gson.JsonObjectReturns the value of theconvexHullrecord component.com.google.gson.JsonObjectReturns the value of theconvexHullCenterrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.modelId()Returns the value of themodelIdrecord component.Returns the value of themodelNamerecord component.final StringtoString()Returns a string representation of this record class.com.google.gson.JsonObjectReturns the value of thewindowSizerecord component.
-
Constructor Details
-
ModelOutlineEvent
public ModelOutlineEvent(String modelName, String modelId, com.google.gson.JsonObject convexHull, com.google.gson.JsonObject convexHullCenter, com.google.gson.JsonObject windowSize) Creates an instance of aModelOutlineEventrecord class.- Parameters:
modelName- the value for themodelNamerecord componentmodelId- the value for themodelIdrecord componentconvexHull- the value for theconvexHullrecord componentconvexHullCenter- the value for theconvexHullCenterrecord componentwindowSize- the value for thewindowSizerecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
modelName
Returns the value of themodelNamerecord component.- Returns:
- the value of the
modelNamerecord component
-
modelId
Returns the value of themodelIdrecord component.- Returns:
- the value of the
modelIdrecord component
-
convexHull
@SerializedName("convexHull") public com.google.gson.JsonObject convexHull()Returns the value of theconvexHullrecord component.- Returns:
- the value of the
convexHullrecord component
-
convexHullCenter
@SerializedName("convexHullCenter") public com.google.gson.JsonObject convexHullCenter()Returns the value of theconvexHullCenterrecord component.- Returns:
- the value of the
convexHullCenterrecord component
-
windowSize
@SerializedName("windowSize") public com.google.gson.JsonObject windowSize()Returns the value of thewindowSizerecord component.- Returns:
- the value of the
windowSizerecord component
-