Package com.io7m.sunburst.runtime
Record Class SBRuntimeConflictingPeer
java.lang.Object
java.lang.Record
com.io7m.sunburst.runtime.SBRuntimeConflictingPeer
- Record Components:
peer0- The peer 0 classpeer0Name- The peer 0 namepeer1- The peer 1 classpeer1Name- The peer 1 name
- All Implemented Interfaces:
SBRuntimeProblemType
public record SBRuntimeConflictingPeer(Class<?> peer0, String peer0Name, Class<?> peer1, String peer1Name)
extends Record
implements SBRuntimeProblemType
Two peers tried to register with the same name.
-
Constructor Summary
ConstructorsConstructorDescriptionSBRuntimeConflictingPeer(Class<?> peer0, String peer0Name, Class<?> peer1, String peer1Name) Two peers tried to register with the same name. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Class<?>peer0()Returns the value of thepeer0record component.Returns the value of thepeer0Namerecord component.Class<?>peer1()Returns the value of thepeer1record component.Returns the value of thepeer1Namerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SBRuntimeConflictingPeer
Two peers tried to register with the same name.- Parameters:
peer0- The peer 0 classpeer0Name- The peer 0 namepeer1- The peer 1 classpeer1Name- The peer 1 name
-
-
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). -
peer0
Returns the value of thepeer0record component.- Returns:
- the value of the
peer0record component
-
peer0Name
Returns the value of thepeer0Namerecord component.- Returns:
- the value of the
peer0Namerecord component
-
peer1
Returns the value of thepeer1record component.- Returns:
- the value of the
peer1record component
-
peer1Name
Returns the value of thepeer1Namerecord component.- Returns:
- the value of the
peer1Namerecord component
-