Record Class PeerPresence
java.lang.Object
java.lang.Record
com.eqixiac.equinix.design.resilience.PeerPresence
- Record Components:
asn- the autonomous system numberlabel- a readable name, ornullmetros- metro codes where the network is present (IX or facility)source- where the presence came from (for examplePeeringDB via PeeringIntelligence)
-
Constructor Summary
ConstructorsConstructorDescriptionPeerPresence(long asn, String label, Set<String> metros, String source) Makesmetrosimmutable, sorted and non-null. -
Method Summary
Modifier and TypeMethodDescriptionlongasn()Returns the value of theasnrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.label()Returns the value of thelabelrecord component.metros()Returns the value of themetrosrecord component.source()Returns the value of thesourcerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
PeerPresence
-
-
Method Details
-
toString
-
hashCode
-
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 thecomparemethod from their corresponding wrapper classes. -
asn
-
label
-
metros
-
source
-