Modifier and Type | Method and Description |
---|---|
static InternalLogId |
allocate(Class<?> type,
String details)
Creates a log id.
|
static InternalLogId |
allocate(String typeName,
String details)
Creates a log id.
|
String |
getDetails() |
long |
getId() |
String |
getTypeName() |
String |
shortName() |
String |
toString() |
public static InternalLogId allocate(Class<?> type, @Nullable String details)
type
- the "Type" to be used when logging this id. The short name of this class will be
used, or else a default if the class is anonymous.details
- a short, human readable string that describes the object the id is attached to.
Typically this will be an address or target.public static InternalLogId allocate(String typeName, @Nullable String details)
typeName
- the "Type" to be used when logging this id.details
- a short, human readable string that describes the object the id is attached to.
Typically this will be an address or target.public String getTypeName()
public long getId()
public String shortName()
Copyright © 2019. All rights reserved.