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
ConstructorDescriptionConnectedApDTO
(String iedName, String apName) Creates an instance of aConnectedApDTO
record class. -
Method Summary
Modifier and TypeMethodDescriptionapName()
Returns the value of theapName
record component.final boolean
Indicates whether some other object is "equal to" this one.static ConnectedApDTO
from
(ConnectedAPAdapter connectedAPAdapter) Convert ConnectedAPAdapter object to dto ConnectedApDTOfinal int
hashCode()
Returns a hash code value for this object.iedName()
Returns the value of theiedName
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
ConnectedApDTO
Creates an instance of aConnectedApDTO
record class.- Parameters:
iedName
- the value for theiedName
record componentapName
- the value for theapName
record 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 theiedName
record component.- Returns:
- the value of the
iedName
record component
-
apName
Returns the value of theapName
record component.- Returns:
- the value of the
apName
record component
-