Package io.papermc.fill.model.request
Record Class PublishRequest
java.lang.Object
java.lang.Record
io.papermc.fill.model.request.PublishRequest
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintbuild()Returns the value of thebuildrecord component.channel()Returns the value of thechannelrecord component.commits()Returns the value of thecommitsrecord component.Returns the value of thedownloadsrecord component.final booleanIndicates whether some other object is "equal to" this one.family()Returns the value of thefamilyrecord component.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.project()Returns the value of theprojectrecord component.time()Returns the value of thetimerecord component.final StringtoString()Returns a string representation of this record class.version()Returns the value of theversionrecord component.
-
Constructor Details
-
PublishRequest
public PublishRequest(UUID id, String project, String family, String version, int build, Instant time, BuildChannel channel, List<Commit> commits, Map<String, Download> downloads) Creates an instance of aPublishRequestrecord class.- Parameters:
id- the value for theidrecord componentproject- the value for theprojectrecord componentfamily- the value for thefamilyrecord componentversion- the value for theversionrecord componentbuild- the value for thebuildrecord componenttime- the value for thetimerecord componentchannel- the value for thechannelrecord componentcommits- the value for thecommitsrecord componentdownloads- the value for thedownloadsrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
project
Returns the value of theprojectrecord component.- Returns:
- the value of the
projectrecord component
-
family
Returns the value of thefamilyrecord component.- Returns:
- the value of the
familyrecord component
-
version
Returns the value of theversionrecord component.- Returns:
- the value of the
versionrecord component
-
build
public int build()Returns the value of thebuildrecord component.- Returns:
- the value of the
buildrecord component
-
time
Returns the value of thetimerecord component.- Returns:
- the value of the
timerecord component
-
channel
Returns the value of thechannelrecord component.- Returns:
- the value of the
channelrecord component
-
commits
Returns the value of thecommitsrecord component.- Returns:
- the value of the
commitsrecord component
-
downloads
Returns the value of thedownloadsrecord component.- Returns:
- the value of the
downloadsrecord component
-