public final class CorrelationID extends Object
| Constructor and Description |
|---|
CorrelationID() |
CorrelationID(CorrelationID from) |
CorrelationID(long value)
Construct a correlation id object and initialize it with the specified
long correlation data
|
CorrelationID(Object value)
Construct a correlation id object and initialize it with the specified
Object value correlation data
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj)
Tests this CorrelationID for equality with another object
|
int |
hashCode()
Return the hashcode value for this CorrelationID
|
boolean |
isInternal()
Return true if this correlation id object was generated internally
by the library false otherwise
|
boolean |
isObject()
Return true if this correlation id object was originally initialized
with an Object value false otherwise
|
boolean |
isValue()
Return true if this correlation id object was originally initialized
with a long value false otherwise
|
Object |
object()
Return the value of this correlation id as a Object value.
|
String |
toString()
Return a String form of this CorrelationID
|
long |
value()
Return the value of this correlation id as a long value.
|
public CorrelationID(long value)
value - the long value to be used as the correlation datapublic CorrelationID(Object value)
value - the Object value to be used as the correlation datapublic CorrelationID()
public CorrelationID(CorrelationID from)
public long value()
Note that this function assumes that this correlation id object has been initialized with an long value.
IllegalStateException - if this correlation id was not initialized
with an long valuepublic Object object()
Note that this function assumes that this correlation id object has been initialized with an Object value.
IllegalStateException - if this correlation id was not initialized
with an objectpublic boolean isInternal()
public boolean isObject()
public boolean isValue()
public boolean equals(Object obj)
If the other Object is not a CorrelationID this method immediately returns false. For two CorrelationID objects to be considered equal both the CorrelationIDs should have a long value or an Object value and the values should be equal
public int hashCode()
Copyright © 2019 Bloomberg L.P.. All rights reserved.