Package net.solarnetwork.ocpp.domain
Class ChargePointIdentity
java.lang.Object
net.solarnetwork.ocpp.domain.ChargePointIdentity
- All Implemented Interfaces:
Comparable<ChargePointIdentity>
A unique identity for a charge point in SolarNetwork.
- Version:
- 1.2
- Author:
- matt
-
Field Details
-
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
Constructor.- Parameters:
identifier- the charge point identifieruserIdentifier- a unique identifier for the charge point account owner; this object should implementComparableand have properObject.hashCode()andObject.equals(Object)support; alljava.lang.Integerinstances will be converted tojava.lang.Longvalues- Throws:
IllegalArgumentException- if any parameter is null
-
-
Method Details
-
hashCode
public int hashCode() -
equals
-
compareTo
- Specified by:
compareToin interfaceComparable<ChargePointIdentity>
-
toString
-
getIdentifier
Get the charge point identifier.- Returns:
- the identifier; never null
-
getUserIdentifier
Get the user identifier.- Returns:
- the user identifier; never null
-