Package io.jmix.dynmodelai.model
Record Class DraftPreview.View
java.lang.Object
java.lang.Record
io.jmix.dynmodelai.model.DraftPreview.View
- Enclosing class:
DraftPreview
public static record DraftPreview.View(@Nullable String viewId, DraftPreview.ViewType type, String title, @Nullable DraftPreview.MenuItem menuItem)
extends Record
Includes the standard identifier for a typed view when its definition omits one.
-
Constructor Summary
ConstructorsConstructorDescriptionView(@Nullable String viewId, DraftPreview.ViewType type, String title, @Nullable DraftPreview.MenuItem menuItem) Creates an instance of aViewrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@Nullable DraftPreview.MenuItemmenuItem()Returns the value of themenuItemrecord component.title()Returns the value of thetitlerecord component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.@Nullable StringviewId()Returns the value of theviewIdrecord component.
-
Constructor Details
-
View
public View(@Nullable String viewId, DraftPreview.ViewType type, String title, @Nullable DraftPreview.MenuItem menuItem) Creates an instance of aViewrecord class.- Parameters:
viewId- the value for theviewIdrecord componenttype- the value for thetyperecord componenttitle- the value for thetitlerecord componentmenuItem- the value for themenuItemrecord 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). -
viewId
Returns the value of theviewIdrecord component.- Returns:
- the value of the
viewIdrecord component
-
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
title
Returns the value of thetitlerecord component.- Returns:
- the value of the
titlerecord component
-