Record Class Location
java.lang.Object
java.lang.Record
io.micronaut.jsonschema.generator.ref.Location
- Record Components:
Region- Country region. If set, can not be blankCity- City. If set, can not be blankPostcode- Postcode. If set, can not be blankAddress- Street address. If set, can not be blank
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAddress()Returns the value of theAddressrecord component.City()Returns the value of theCityrecord component.@Pattern(regexp="[A-Z]{2}") @NotNull StringCountry()Returns the value of theCountryrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Postcode()Returns the value of thePostcoderecord component.Region()Returns the value of theRegionrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Location
-
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
Country
Returns the value of theCountryrecord component.- Returns:
- the value of the
Countryrecord component
-
Region
-
City
-
Postcode
-
Address
-