Package org.graylog2.database.dbcatalog
Record Class DbEntityCatalogEntry
java.lang.Object
java.lang.Record
org.graylog2.database.dbcatalog.DbEntityCatalogEntry
-
Constructor Summary
ConstructorsConstructorDescriptionDbEntityCatalogEntry(String collection, String titleField, Class<?> modelClass, String readPermission) Creates an instance of aDbEntityCatalogEntryrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecollectionrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Class<?>Returns the value of themodelClassrecord component.Returns the value of thereadPermissionrecord component.Returns the value of thetitleFieldrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
DbEntityCatalogEntry
public DbEntityCatalogEntry(String collection, String titleField, Class<?> modelClass, String readPermission) Creates an instance of aDbEntityCatalogEntryrecord class.- Parameters:
collection- the value for thecollectionrecord componenttitleField- the value for thetitleFieldrecord componentmodelClass- the value for themodelClassrecord componentreadPermission- the value for thereadPermissionrecord 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). -
collection
Returns the value of thecollectionrecord component.- Returns:
- the value of the
collectionrecord component
-
titleField
Returns the value of thetitleFieldrecord component.- Returns:
- the value of the
titleFieldrecord component
-
modelClass
Returns the value of themodelClassrecord component.- Returns:
- the value of the
modelClassrecord component
-
readPermission
Returns the value of thereadPermissionrecord component.- Returns:
- the value of the
readPermissionrecord component
-