Package io.meeds.appcenter.model
Record Class ApplicationBadgeProvider
java.lang.Object
java.lang.Record
io.meeds.appcenter.model.ApplicationBadgeProvider
- Record Components:
name- the badge identifierdrawerNames- the Drawer entry urls this provider binds to, possibly emptyportletNames- the Portlet entry urls this provider binds to, possibly empty
public record ApplicationBadgeProvider(String name, List<String> drawerNames, List<String> portletNames)
extends Record
A badge provider as the administration form sees it. The declared urls are
what lets the form resolve the binding on its own for a Drawer or Portlet
entry, instead of asking an administrator to pick one. Several urls may be
declared per type, since one badge can belong to several catalog entries.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedrawerNamesrecord 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.Returns the value of theportletNamesrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ApplicationBadgeProvider
Creates an instance of aApplicationBadgeProviderrecord class.- Parameters:
name- the value for thenamerecord componentdrawerNames- the value for thedrawerNamesrecord componentportletNames- the value for theportletNamesrecord 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). -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
drawerNames
Returns the value of thedrawerNamesrecord component.- Returns:
- the value of the
drawerNamesrecord component
-
portletNames
Returns the value of theportletNamesrecord component.- Returns:
- the value of the
portletNamesrecord component
-