Package de.chojo.nexus.entities
Record Class ComponentXO
java.lang.Object
java.lang.Record
de.chojo.nexus.entities.ComponentXO
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionassets()
Returns the value of theassets
record component.final boolean
Indicates whether some other object is "equal to" this one.format()
Returns the value of theformat
record component.group()
Returns the value of thegroup
record component.final int
hashCode()
Returns a hash code value for this object.id()
Returns the value of theid
record component.name()
Returns the value of thename
record component.Returns the value of therepository
record component.final String
toString()
Returns a string representation of this record class.version()
Returns the value of theversion
record component.
-
Constructor Details
-
ComponentXO
public ComponentXO(String id, String repository, String format, String group, String name, String version, List<AssetXO> assets) Creates an instance of aComponentXO
record class.- Parameters:
id
- the value for theid
record componentrepository
- the value for therepository
record componentformat
- the value for theformat
record componentgroup
- the value for thegroup
record componentname
- the value for thename
record componentversion
- the value for theversion
record componentassets
- the value for theassets
record component
-
-
Method Details
-
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)
. -
id
Returns the value of theid
record component.- Returns:
- the value of the
id
record component
-
repository
Returns the value of therepository
record component.- Returns:
- the value of the
repository
record component
-
format
Returns the value of theformat
record component.- Returns:
- the value of the
format
record component
-
group
Returns the value of thegroup
record component.- Returns:
- the value of the
group
record component
-
name
Returns the value of thename
record component.- Returns:
- the value of the
name
record component
-
version
Returns the value of theversion
record component.- Returns:
- the value of the
version
record component
-
assets
Returns the value of theassets
record component.- Returns:
- the value of the
assets
record component
-