@Beta public final class PiMeterCellId extends Object implements MeterCellId
MeterCellId.MeterCellType
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
int |
hashCode() |
long |
index()
Returns the meter index to which this cell ID is associated.
|
PiMeterId |
meterId()
Returns the identifier of the meter instance where this cell is contained.
|
PiMeterType |
meterType()
Returns the type of the meter identified.
|
static PiMeterCellId |
ofDirect(PiTableEntry tableEntry)
Return a direct meter cell ID for the given meter ID and table entry.
|
static PiMeterCellId |
ofIndirect(PiMeterId meterId,
long index)
Return an indirect meter cell ID for the given meter ID and index.
|
PiTableEntry |
tableEntry()
Returns the table entry to which this cell ID is associated.
|
String |
toString() |
MeterCellId.MeterCellType |
type()
Return the type of this meter cell identifier.
|
public PiMeterId meterId()
PiMeterType.DIRECT
, otherwise returns null.public PiMeterType meterType()
public long index()
PiMeterType.INDIRECT
.public PiTableEntry tableEntry()
PiMeterType.DIRECT
, otherwise returns null.public MeterCellId.MeterCellType type()
MeterCellId
type
in interface MeterCellId
public static PiMeterCellId ofDirect(PiTableEntry tableEntry)
tableEntry
- table entrypublic static PiMeterCellId ofIndirect(PiMeterId meterId, long index)
meterId
- meter IDindex
- index