Record Class BuildResponse
java.lang.Object
java.lang.Record
io.papermc.fill.model.response.v3.BuildResponse
@NullMarked
public record BuildResponse(int id, Instant time, BuildChannel channel, List<Commit> commits, Map<String,DownloadWithUrl> downloads)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionBuildResponse(int id, Instant time, BuildChannel channel, List<Commit> commits, Map<String, DownloadWithUrl> downloads) Creates an instance of aBuildResponserecord class. -
Method Summary
Modifier and TypeMethodDescriptionchannel()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.final inthashCode()Returns a hash code value for this object.intid()Returns the value of theidrecord component.time()Returns the value of thetimerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
BuildResponse
public BuildResponse(int id, Instant time, BuildChannel channel, List<Commit> commits, Map<String, DownloadWithUrl> downloads) Creates an instance of aBuildResponserecord class.- Parameters:
id- the value for theidrecord 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
public int id()Returns the value of theidrecord component.- Returns:
- the value of the
idrecord 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
-