Record Class Village
java.lang.Object
java.lang.Record
io.leandev.appfuse.almanac.address.Village
- Record Components:
id- 識別(NLSC villageId)code- 代碼(NLSC 僅提供 villageId,故與 id 相同)name- 名稱(如三民里)cityCode- 所屬縣市代碼townCode- 所屬鄉鎮市區代碼
- 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.townCode()Returns the value of thetownCoderecord component.
-
Constructor Details
-
Village
Creates an instance of aVillagerecord 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
-
townCode
-