Record Class Town
java.lang.Object
java.lang.Record
io.leandev.appfuse.almanac.address.Town
- Record Components:
id- 識別(NLSC towncode)code- 代碼(NLSC towncode01,用於下層 villages 路徑)name- 名稱(如松山區)cityCode- 所屬縣市代碼zipCode- 三碼郵遞區號(可能為 null)
- All Implemented Interfaces:
Serializable
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncityCode()Returns the value of thecityCoderecord component.code()Returns the value of thecoderecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.name()Returns the value of thenamerecord component.final StringtoString()Returns a string representation of this record class.zipCode()Returns the value of thezipCoderecord component.
-
Constructor Details
-
Town
Creates an instance of aTownrecord class.
-
-
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). -
id
-
code
-
name
-
cityCode
-
zipCode
-