Record Class RestApiResultDto
java.lang.Object
java.lang.Record
ch.admin.bit.jeap.archrepo.web.rest.model.RestApiResultDto
public record RestApiResultDto(String serverUrl, ZonedDateTime lastUpdated, String version, List<RestApiDto> restApis)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionRestApiResultDto(String serverUrl, ZonedDateTime lastUpdated, String version, List<RestApiDto> restApis) Creates an instance of aRestApiResultDtorecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thelastUpdatedrecord component.static RestApiResultDtoof(ch.admin.bit.jeap.archrepo.persistence.ApiDocDto apiDocDto, List<RestApiDto> restApis) restApis()Returns the value of therestApisrecord component.Returns the value of theserverUrlrecord component.final StringtoString()Returns a string representation of this record class.version()Returns the value of theversionrecord component.
-
Constructor Details
-
RestApiResultDto
public RestApiResultDto(String serverUrl, ZonedDateTime lastUpdated, String version, List<RestApiDto> restApis) Creates an instance of aRestApiResultDtorecord class.- Parameters:
serverUrl- the value for theserverUrlrecord componentlastUpdated- the value for thelastUpdatedrecord componentversion- the value for theversionrecord componentrestApis- the value for therestApisrecord component
-
-
Method Details
-
of
public static RestApiResultDto of(ch.admin.bit.jeap.archrepo.persistence.ApiDocDto apiDocDto, List<RestApiDto> restApis) -
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). -
serverUrl
Returns the value of theserverUrlrecord component.- Returns:
- the value of the
serverUrlrecord component
-
lastUpdated
Returns the value of thelastUpdatedrecord component.- Returns:
- the value of the
lastUpdatedrecord component
-
version
Returns the value of theversionrecord component.- Returns:
- the value of the
versionrecord component
-
restApis
Returns the value of therestApisrecord component.- Returns:
- the value of the
restApisrecord component
-