Record Class EndpointConnectivityController.FamilySnapshot
java.lang.Object
java.lang.Record
org.cloudburstmc.netty.signaling.provider.connectivity.EndpointConnectivityController.FamilySnapshot
- Enclosing class:
- EndpointConnectivityController
public static record EndpointConnectivityController.FamilySnapshot(EndpointConnectivityController.State state, List<EndpointSelection.Candidate> directCandidates, Optional<EndpointConnectivityController.Observation> observation, Optional<InetSocketAddress> freshStunEndpoint)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionFamilySnapshot(EndpointConnectivityController.State state, List<EndpointSelection.Candidate> directCandidates, Optional<EndpointConnectivityController.Observation> observation, Optional<InetSocketAddress> freshStunEndpoint) Creates an instance of aFamilySnapshotrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedirectCandidatesrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thefreshStunEndpointrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of theobservationrecord component.state()Returns the value of thestaterecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
FamilySnapshot
public FamilySnapshot(EndpointConnectivityController.State state, List<EndpointSelection.Candidate> directCandidates, Optional<EndpointConnectivityController.Observation> observation, Optional<InetSocketAddress> freshStunEndpoint) Creates an instance of aFamilySnapshotrecord class.- Parameters:
state- the value for thestaterecord componentdirectCandidates- the value for thedirectCandidatesrecord componentobservation- the value for theobservationrecord componentfreshStunEndpoint- the value for thefreshStunEndpointrecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
state
Returns the value of thestaterecord component.- Returns:
- the value of the
staterecord component
-
directCandidates
Returns the value of thedirectCandidatesrecord component.- Returns:
- the value of the
directCandidatesrecord component
-
observation
Returns the value of theobservationrecord component.- Returns:
- the value of the
observationrecord component
-
freshStunEndpoint
Returns the value of thefreshStunEndpointrecord component.- Returns:
- the value of the
freshStunEndpointrecord component
-