Record Class MaintainedCandidatePublisher.Publication
java.lang.Object
java.lang.Record
org.cloudburstmc.netty.signaling.provider.connectivity.MaintainedCandidatePublisher.Publication
- Enclosing class:
- MaintainedCandidatePublisher
public static record MaintainedCandidatePublisher.Publication(long mappingRevision, NativeCandidateSnapshot candidates, NativeCandidateSnapshot probeCandidates, Set<Integer> assistedFamilies, Runnable current)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionPublication(long mappingRevision, NativeCandidateSnapshot candidates, NativeCandidateSnapshot probeCandidates, Set<Integer> assistedFamilies, Runnable current) Creates an instance of aPublicationrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theassistedFamiliesrecord component.Returns the value of thecandidatesrecord component.current()Returns the value of thecurrentrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.longReturns the value of themappingRevisionrecord component.Returns the value of theprobeCandidatesrecord component.voidfinal StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Publication
public Publication(long mappingRevision, NativeCandidateSnapshot candidates, NativeCandidateSnapshot probeCandidates, Set<Integer> assistedFamilies, Runnable current) Creates an instance of aPublicationrecord class.- Parameters:
mappingRevision- the value for themappingRevisionrecord componentcandidates- the value for thecandidatesrecord componentprobeCandidates- the value for theprobeCandidatesrecord componentassistedFamilies- the value for theassistedFamiliesrecord componentcurrent- the value for thecurrentrecord component
-
-
Method Details
-
requireCurrent
public void requireCurrent() -
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 '=='. -
mappingRevision
public long mappingRevision()Returns the value of themappingRevisionrecord component.- Returns:
- the value of the
mappingRevisionrecord component
-
candidates
Returns the value of thecandidatesrecord component.- Returns:
- the value of the
candidatesrecord component
-
probeCandidates
Returns the value of theprobeCandidatesrecord component.- Returns:
- the value of the
probeCandidatesrecord component
-
assistedFamilies
Returns the value of theassistedFamiliesrecord component.- Returns:
- the value of the
assistedFamiliesrecord component
-
current
Returns the value of thecurrentrecord component.- Returns:
- the value of the
currentrecord component
-