Package de.chojo.universalis.entities
Record Class Name
java.lang.Object
java.lang.Record
de.chojo.universalis.entities.Name
- Record Components:
english- english namegerman- german namefrench- french namejapanese- japanese name
Name of an entity
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Nameempty()Constant empty name objectenglish()Returns the value of theenglishrecord component.final booleanIndicates whether some other object is "equal to" this one.french()Returns the value of thefrenchrecord component.german()Returns the value of thegermanrecord component.final inthashCode()Returns a hash code value for this object.japanese()Returns the value of thejapaneserecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Method Details
-
empty
Constant empty name object- Returns:
- empty instance
-
get
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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). -
english
Returns the value of theenglishrecord component.- Returns:
- the value of the
englishrecord component
-
german
Returns the value of thegermanrecord component.- Returns:
- the value of the
germanrecord component
-
french
Returns the value of thefrenchrecord component.- Returns:
- the value of the
frenchrecord component
-
japanese
Returns the value of thejapaneserecord component.- Returns:
- the value of the
japaneserecord component
-