java.lang.Object
java.lang.Record
net.foxgenesis.property.PropertyInfo
public record PropertyInfo(int id, String category, String name, boolean modifiable, PropertyType type)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionPropertyInfo(int id, String category, String name, boolean modifiable, PropertyType type) Creates an instance of aPropertyInforecord class. -
Method Summary
Modifier and TypeMethodDescriptioncategory()Returns the value of thecategoryrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intid()Returns the value of theidrecord component.booleanReturns the value of themodifiablerecord component.name()Returns the value of thenamerecord component.toString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.
-
Constructor Details
-
PropertyInfo
Creates an instance of aPropertyInforecord class.- Parameters:
id- the value for theidrecord componentcategory- the value for thecategoryrecord componentname- the value for thenamerecord componentmodifiable- the value for themodifiablerecord componenttype- the value for thetyperecord component
-
-
Method Details
-
getDisplayString
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
id
public int id()Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
category
Returns the value of thecategoryrecord component.- Returns:
- the value of the
categoryrecord component
-
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
modifiable
public boolean modifiable()Returns the value of themodifiablerecord component.- Returns:
- the value of the
modifiablerecord component
-
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-