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 Name
empty()
Constant empty name objectenglish()
Returns the value of theenglish
record component.final boolean
Indicates whether some other object is "equal to" this one.french()
Returns the value of thefrench
record component.german()
Returns the value of thegerman
record component.final int
hashCode()
Returns a hash code value for this object.japanese()
Returns the value of thejapanese
record component.final String
toString()
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 theenglish
record component.- Returns:
- the value of the
english
record component
-
german
Returns the value of thegerman
record component.- Returns:
- the value of the
german
record component
-
french
Returns the value of thefrench
record component.- Returns:
- the value of the
french
record component
-
japanese
Returns the value of thejapanese
record component.- Returns:
- the value of the
japanese
record component
-