@Beta public final class PiCounterCellId extends Object
Modifier and Type | Method and Description |
---|---|
PiCounterId |
counterId()
Returns the identifier of the counter instance where this cell is
contained.
|
PiCounterType |
counterType()
Returns the type of the counter identified.
|
boolean |
equals(Object obj) |
int |
hashCode() |
long |
index()
Returns the counter index to which this cell ID is associated.
|
static PiCounterCellId |
ofDirect(PiTableEntry tableEntry)
Return a direct counter cell ID for the given counter ID and table
entry.
|
static PiCounterCellId |
ofIndirect(PiCounterId counterId,
long index)
Return an indirect counter cell ID for the given counter ID and index.
|
PiTableEntry |
tableEntry()
Returns the table entry to which this cell ID is associated.
|
String |
toString() |
public PiCounterId counterId()
PiCounterType.INDIRECT
.public PiCounterType counterType()
public long index()
PiCounterType.INDIRECT
.public PiTableEntry tableEntry()
PiCounterType.DIRECT
, otherwise
returns null.public static PiCounterCellId ofDirect(PiTableEntry tableEntry)
tableEntry
- table entrypublic static PiCounterCellId ofIndirect(PiCounterId counterId, long index)
counterId
- counter IDindex
- index