Package org.lfenergy.shapeshifter.api
Record Class EntityAddress
java.lang.Object
java.lang.Record
org.lfenergy.shapeshifter.api.EntityAddress
Entity Address such as EAN or EA1.
From the USEF Flex Trading Protocol Specification, Section 7. EA1 addressing scheme:
In USEF messages, there is often a requirement for a globally unique identity for certain entities. To meet this requirement, USEF defines the Entity Address (EA).
Currently, two addressing schemes are supported:
- The European Article Number (EAN), commonly used to uniquely identify connection points in the electricity network and therefore a natural identifier to do the same in USEF. An example of an EA using this scheme is: ean.871685900012636543
- The USEF type 1 entity address (EA1) is designed to allow participants to generate unique identifiers for themselves and entities managed by them, without relying on a central authority.
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionEntityAddress(EntityAddress.Scheme scheme, String address) Creates an instance of aEntityAddressrecord class. -
Method Summary
Modifier and TypeMethodDescriptionaddress()Returns the value of theaddressrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.static EntityAddressscheme()Returns the value of theschemerecord component.toString()Returns a string representation of this record class.
-
Constructor Details
-
EntityAddress
Creates an instance of aEntityAddressrecord class.- Parameters:
scheme- the value for theschemerecord componentaddress- the value for theaddressrecord component
-
-
Method Details
-
parse
-
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). -
scheme
Returns the value of theschemerecord component.- Returns:
- the value of the
schemerecord component
-
address
Returns the value of theaddressrecord component.- Returns:
- the value of the
addressrecord component
-