Record Class SocialNetworkRegistry.NetworkInfo
java.lang.Object
java.lang.Record
dev.jcputney.mjml.util.SocialNetworkRegistry.NetworkInfo
- Record Components:
name- the human-readable display namebackgroundColor- the default background hex color- the sharing URL pattern with[[URL]]placeholder
- Enclosing class:
SocialNetworkRegistry
-
Constructor Summary
ConstructorsConstructorDescriptionNetworkInfo(String name, String backgroundColor, String shareUrl) Creates an instance of aNetworkInforecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thebackgroundColorrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.name()Returns the value of thenamerecord component.shareUrl()Returns the value of theshareUrlrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
NetworkInfo
Creates an instance of aNetworkInforecord class.- Parameters:
name- the value for thenamerecord componentbackgroundColor- the value for thebackgroundColorrecord componentshareUrl- the value for theshareUrlrecord component
-
-
Method Details
-
toString
-
hashCode
-
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). -
name
-
backgroundColor
Returns the value of thebackgroundColorrecord component.- Returns:
- the value of the
backgroundColorrecord component
-