Record Class GroupParent
java.lang.Object
java.lang.Record
de.murmelmeister.murmelapi.group.parent.GroupParent
public record GroupParent(int groupId, int parentId, LocalDateTime expiresAt, 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 LocalDateTimeThe field for theexpiresAtrecord component.private final intThe field for thegroupIdrecord component.private final intThe field for theparentIdrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionGroupParent(int groupId, int parentId, LocalDateTime expiresAt, int createdBy, LocalDateTime createdAt, Integer changedBy, LocalDateTime changedAt) Creates an instance of aGroupParentrecord 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.Returns the value of theexpiresAtrecord component.intgroupId()Returns the value of thegroupIdrecord component.final inthashCode()Returns a hash code value for this object.booleanbooleanintparentId()Returns the value of theparentIdrecord component.final StringtoString()Returns a string representation of this record class.withUpdateMeta(LocalDateTime expiresAt, Integer changedBy, LocalDateTime changedAt)
-
Field Details
-
groupId
private final int groupIdThe field for thegroupIdrecord component. -
parentId
private final int parentIdThe field for theparentIdrecord component. -
expiresAt
The field for theexpiresAtrecord 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
-
GroupParent
public GroupParent(int groupId, int parentId, LocalDateTime expiresAt, int createdBy, LocalDateTime createdAt, Integer changedBy, LocalDateTime changedAt) Creates an instance of aGroupParentrecord class.- Parameters:
groupId- the value for thegroupIdrecord componentparentId- the value for theparentIdrecord componentexpiresAt- the value for theexpiresAtrecord componentcreatedBy- the value for thecreatedByrecord componentcreatedAt- the value for thecreatedAtrecord componentchangedBy- the value for thechangedByrecord componentchangedAt- the value for thechangedAtrecord component
-
-
Method Details
-
isExpired
public boolean isExpired() -
isPermanent
public boolean isPermanent() -
withUpdateMeta
public GroupParent withUpdateMeta(LocalDateTime expiresAt, Integer changedBy, LocalDateTime changedAt) -
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
-
parentId
public int parentId()Returns the value of theparentIdrecord component.- Returns:
- the value of the
parentIdrecord component
-
expiresAt
Returns the value of theexpiresAtrecord component.- Returns:
- the value of the
expiresAtrecord 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
-