@Beta
public final class PiCounterCellId
extends java.lang.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(java.lang.Object obj) |
int |
hashCode() |
long |
index()
Returns the counter index to which this cell ID is associated.
|
static PiCounterCellId |
ofDirect(PiCounterId counterId,
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.
|
java.lang.String |
toString() |
public PiCounterId counterId()
public PiCounterType counterType()
public long index()
PiCounterType.INDIRECT.public PiTableEntry tableEntry()
PiCounterType.DIRECT, otherwise returns null.public static PiCounterCellId ofDirect(PiCounterId counterId, PiTableEntry tableEntry)
counterId - counter IDtableEntry - table entrypublic static PiCounterCellId ofIndirect(PiCounterId counterId, long index)
counterId - counter IDindex - indexpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object