Record Class ConnectedApDTO
java.lang.Object
java.lang.Record
org.lfenergy.compas.sct.commons.dto.ConnectedApDTO
A representation of the model object Connected AP.
The following features are supported:
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionConnectedApDTO(String iedName, String apName) Creates an instance of aConnectedApDTOrecord class. -
Method Summary
Modifier and TypeMethodDescriptionapName()Returns the value of theapNamerecord component.final booleanIndicates whether some other object is "equal to" this one.static ConnectedApDTOfrom(ConnectedAPAdapter connectedAPAdapter) Convert ConnectedAPAdapter object to dto ConnectedApDTOfinal inthashCode()Returns a hash code value for this object.iedName()Returns the value of theiedNamerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ConnectedApDTO
Creates an instance of aConnectedApDTOrecord class.- Parameters:
iedName- the value for theiedNamerecord componentapName- the value for theapNamerecord component
-
-
Method Details
-
from
Convert ConnectedAPAdapter object to dto ConnectedApDTO- Parameters:
connectedAPAdapter- object to convert- Returns:
- dto ConnectedApDTO
-
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). -
iedName
Returns the value of theiedNamerecord component.- Returns:
- the value of the
iedNamerecord component
-
apName
Returns the value of theapNamerecord component.- Returns:
- the value of the
apNamerecord component
-