Package org.onlab.util
Class Identifier<T>
- java.lang.Object
 - 
- org.onlab.util.Identifier<T>
 
 
- 
- Direct Known Subclasses:
 AlarmEntityId,AlarmId,ButtonId,ChassisId,ClusterId,DeviceKeyId,DomainId,FlowId,GroupId,IndexTableId,IntentId,MeterId,MplsLabel,NodeId,NshServicePathId,PartitionId,PiActionId,PiActionParamId,PiActionProfileGroupId,PiActionProfileId,PiActionProfileMemberId,PiCounterId,PiMatchFieldId,PiMeterId,PiPacketMetadataId,PiPipeconfId,PiRegisterId,PiTableId,PolicerId,RegionId,ResourceGroup,TenantId,TransactionId,TransportEndpointId,UiTopoLayoutId,VlanId
public class Identifier<T> extends java.lang.ObjectAbstract identifier backed by another value, e.g. string, int. 
- 
- 
Field Summary
Fields Modifier and Type Field Description protected Tidentifier 
- 
Constructor Summary
Constructors Modifier Constructor Description protectedIdentifier()Constructor for serialization.protectedIdentifier(T value)Constructs an identifier backed by the specified value. 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)Compares two device key identifiers for equality.inthashCode()Returns the hashcode of the identifier.Tid()Returns the backing identifier value.java.lang.StringtoString()Returns a string representation of a DeviceKeyId. 
 - 
 
- 
- 
Field Detail
- 
identifier
protected final T identifier
 
 - 
 
- 
Constructor Detail
- 
Identifier
protected Identifier()
Constructor for serialization. 
- 
Identifier
protected Identifier(T value)
Constructs an identifier backed by the specified value.- Parameters:
 value- the backing value
 
 - 
 
- 
Method Detail
- 
id
public T id()
Returns the backing identifier value.- Returns:
 - identifier
 
 
- 
hashCode
public int hashCode()
Returns the hashcode of the identifier.- Overrides:
 hashCodein classjava.lang.Object- Returns:
 - hashcode
 
 
- 
equals
public boolean equals(java.lang.Object obj)
Compares two device key identifiers for equality.- Overrides:
 equalsin classjava.lang.Object- Parameters:
 obj- to compare against- Returns:
 - true if the objects are equal, false otherwise.
 
 
- 
toString
public java.lang.String toString()
Returns a string representation of a DeviceKeyId.- Overrides:
 toStringin classjava.lang.Object- Returns:
 - string
 
 
 - 
 
 -