Package edu.cnu.mdi.app
Record Class StartupInfo
java.lang.Object
java.lang.Record
edu.cnu.mdi.app.StartupInfo
public record StartupInfo(String applicationName, String version, String organization, String copyright, Icon logo)
extends Record
Immutable presentation metadata for an optional application startup window.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theapplicationNamerecord component.static StartupInfo.BuilderReturns the value of thecopyrightrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.logo()Returns the value of thelogorecord component.Returns the value of theorganizationrecord component.final StringtoString()Returns a string representation of this record class.version()Returns the value of theversionrecord component.
-
Constructor Details
-
StartupInfo
public StartupInfo(String applicationName, String version, String organization, String copyright, Icon logo) Creates an instance of aStartupInforecord class.- Parameters:
applicationName- the value for theapplicationNamerecord componentversion- the value for theversionrecord componentorganization- the value for theorganizationrecord componentcopyright- the value for thecopyrightrecord componentlogo- the value for thelogorecord component
-
-
Method Details
-
builder
-
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). -
applicationName
Returns the value of theapplicationNamerecord component.- Returns:
- the value of the
applicationNamerecord component
-
version
Returns the value of theversionrecord component.- Returns:
- the value of the
versionrecord component
-
organization
Returns the value of theorganizationrecord component.- Returns:
- the value of the
organizationrecord component
-
copyright
Returns the value of thecopyrightrecord component.- Returns:
- the value of the
copyrightrecord component
-
logo
Returns the value of thelogorecord component.- Returns:
- the value of the
logorecord component
-