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 theassetsrecord component.final booleanIndicates whether some other object is "equal to" this one.format()Returns the value of theformatrecord component.group()Returns the value of thegrouprecord component.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.name()Returns the value of thenamerecord component.Returns the value of therepositoryrecord component.final StringtoString()Returns a string representation of this record class.version()Returns the value of theversionrecord 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 aComponentXOrecord class.- Parameters:
id- the value for theidrecord componentrepository- the value for therepositoryrecord componentformat- the value for theformatrecord componentgroup- the value for thegrouprecord componentname- the value for thenamerecord componentversion- the value for theversionrecord componentassets- the value for theassetsrecord 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 theidrecord component.- Returns:
- the value of the
idrecord component
-
repository
Returns the value of therepositoryrecord component.- Returns:
- the value of the
repositoryrecord component
-
format
Returns the value of theformatrecord component.- Returns:
- the value of the
formatrecord component
-
group
Returns the value of thegrouprecord component.- Returns:
- the value of the
grouprecord component
-
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
version
Returns the value of theversionrecord component.- Returns:
- the value of the
versionrecord component
-
assets
Returns the value of theassetsrecord component.- Returns:
- the value of the
assetsrecord component
-