Package org.readutf.buildstore.api
Record Class BuildMeta
java.lang.Object
java.lang.Record
org.readutf.buildstore.api.BuildMeta
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@NonNull StringReturns the value of thedescriptionrecord component.final booleanIndicates whether some other object is "equal to" this one.getId()final inthashCode()Returns a hash code value for this object.labels()Returns the value of thelabelsrecord component.@NonNull Stringname()Returns the value of thenamerecord component.longsavedAt()Returns the value of thesavedAtrecord component.@NonNull UUIDsavedBy()Returns the value of thesavedByrecord component.final StringtoString()Returns a string representation of this record class.intversion()Returns the value of theversionrecord component.
-
Constructor Details
-
BuildMeta
public BuildMeta(@NonNull String name, int version, @NonNull String description, @NonNull List<String> labels, @NonNull UUID savedBy, long savedAt) Creates an instance of aBuildMetarecord class.- Parameters:
name- the value for thenamerecord componentversion- the value for theversionrecord componentdescription- the value for thedescriptionrecord componentlabels- the value for thelabelsrecord componentsavedBy- the value for thesavedByrecord componentsavedAt- the value for thesavedAtrecord component
-
-
Method Details
-
getId
-
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 '=='. -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
version
public int version()Returns the value of theversionrecord component.- Returns:
- the value of the
versionrecord component
-
description
Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord component
-
labels
Returns the value of thelabelsrecord component.- Returns:
- the value of the
labelsrecord component
-
savedBy
Returns the value of thesavedByrecord component.- Returns:
- the value of the
savedByrecord component
-
savedAt
public long savedAt()Returns the value of thesavedAtrecord component.- Returns:
- the value of the
savedAtrecord component
-