Record Class SiteIntent
java.lang.Object
java.lang.Record
com.eqixiac.equinix.design.spec.SiteIntent
- Record Components:
label- unique name within the spec, used in every result that refers to the sitemetro- nearest Equinix metro code, ornulllatitude- decimal degrees, ornulllongitude- decimal degrees, ornullrole- what the site is, which sets its default importance; may benullheadcount- people at the site, used as its weight whenweightis unset; may benullweight- explicit relative importance (positive); overrides headcount and role; may benull
public record SiteIntent(String label, String metro, Double latitude, Double longitude, SiteRole role, Integer headcount, Double weight)
extends Record
A place the design must serve: an office, a user population, a factory or an existing data
centre. Give either
metro (an Equinix metro code such as "LD") or
latitude + longitude; with neither, latency to the site is unknown and the site
is left out of latency scoring and latency limits.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.booleanfinal inthashCode()Returns a hash code value for this object.Returns the value of theheadcountrecord component.label()Returns the value of thelabelrecord component.latitude()Returns the value of thelatituderecord component.Returns the value of thelongituderecord component.metro()Returns the value of themetrorecord component.role()Returns the value of therolerecord component.final StringtoString()Returns a string representation of this record class.weight()Returns the value of theweightrecord component.
-
Constructor Details
-
SiteIntent
public SiteIntent(String label, String metro, Double latitude, Double longitude, SiteRole role, Integer headcount, Double weight) Creates an instance of aSiteIntentrecord class.- Parameters:
label- the value for thelabelrecord componentmetro- the value for themetrorecord componentlatitude- the value for thelatituderecord componentlongitude- the value for thelongituderecord componentrole- the value for therolerecord componentheadcount- the value for theheadcountrecord componentweight- the value for theweightrecord component
-
-
Method Details
-
hasCoordinates
public boolean hasCoordinates()- Returns:
truewhen the site carries both coordinates
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
label
-
metro
-
latitude
-
longitude
-
role
-
headcount
-
weight
-