Record Class GroupColor
java.lang.Object
java.lang.Record
de.murmelmeister.murmelapi.group.color.GroupColor
public record GroupColor(int groupId, int typeId, String value, int createdBy, LocalDateTime createdAt, Integer changedBy, LocalDateTime changedAt)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final LocalDateTimeThe field for thechangedAtrecord component.private final IntegerThe field for thechangedByrecord component.private final LocalDateTimeThe field for thecreatedAtrecord component.private final intThe field for thecreatedByrecord component.private final intThe field for thegroupIdrecord component.private final intThe field for thetypeIdrecord component.private final StringThe field for thevaluerecord component. -
Constructor Summary
ConstructorsConstructorDescriptionGroupColor(int groupId, int typeId, String value, int createdBy, LocalDateTime createdAt, Integer changedBy, LocalDateTime changedAt) Creates an instance of aGroupColorrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thechangedAtrecord component.Returns the value of thechangedByrecord component.Returns the value of thecreatedAtrecord component.intReturns the value of thecreatedByrecord component.final booleanIndicates whether some other object is "equal to" this one.intgroupId()Returns the value of thegroupIdrecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.inttypeId()Returns the value of thetypeIdrecord component.value()Returns the value of thevaluerecord component.withUpdateMeta(String value, Integer changedBy, LocalDateTime changedAt)
-
Field Details
-
groupId
private final int groupIdThe field for thegroupIdrecord component. -
typeId
private final int typeIdThe field for thetypeIdrecord component. -
value
The field for thevaluerecord component. -
createdBy
private final int createdByThe field for thecreatedByrecord component. -
createdAt
The field for thecreatedAtrecord component. -
changedBy
The field for thechangedByrecord component. -
changedAt
The field for thechangedAtrecord component.
-
-
Constructor Details
-
GroupColor
public GroupColor(int groupId, int typeId, String value, int createdBy, LocalDateTime createdAt, Integer changedBy, LocalDateTime changedAt) Creates an instance of aGroupColorrecord class.- Parameters:
groupId- the value for thegroupIdrecord componenttypeId- the value for thetypeIdrecord componentvalue- the value for thevaluerecord componentcreatedBy- the value for thecreatedByrecord componentcreatedAt- the value for thecreatedAtrecord componentchangedBy- the value for thechangedByrecord componentchangedAt- the value for thechangedAtrecord component
-
-
Method Details
-
withUpdateMeta
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
groupId
public int groupId()Returns the value of thegroupIdrecord component.- Returns:
- the value of the
groupIdrecord component
-
typeId
public int typeId()Returns the value of thetypeIdrecord component.- Returns:
- the value of the
typeIdrecord component
-
value
Returns the value of thevaluerecord component.- Returns:
- the value of the
valuerecord component
-
createdBy
public int createdBy()Returns the value of thecreatedByrecord component.- Returns:
- the value of the
createdByrecord component
-
createdAt
Returns the value of thecreatedAtrecord component.- Returns:
- the value of the
createdAtrecord component
-
changedBy
Returns the value of thechangedByrecord component.- Returns:
- the value of the
changedByrecord component
-
changedAt
Returns the value of thechangedAtrecord component.- Returns:
- the value of the
changedAtrecord component
-