Class ChargePointIdentity

java.lang.Object
net.solarnetwork.ocpp.domain.ChargePointIdentity
All Implemented Interfaces:
Comparable<ChargePointIdentity>

public class ChargePointIdentity extends Object implements Comparable<ChargePointIdentity>
A unique identity for a charge point in SolarNetwork.
Version:
1.2
Author:
matt
  • Field Details

    • ANY_USER

      public static final String ANY_USER
      A user identifier constant for the concept of "any user".

      This username can be used in contexts where charge points can be uniquely identified by their getIdentifier() values alone, such as in SolarNode.

      See Also:
  • Constructor Details

    • ChargePointIdentity

      public ChargePointIdentity(String identifier, Object userIdentifier)
      Constructor.
      Parameters:
      identifier - the charge point identifier
      userIdentifier - a unique identifier for the charge point account owner; this object should implement Comparable and have proper Object.hashCode() and Object.equals(Object) support; all java.lang.Integer instances will be converted to java.lang.Long values
      Throws:
      IllegalArgumentException - if any parameter is null
  • Method Details