public static final class PiActionProfileGroup.WeightedMember extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_WEIGHT |
| Constructor and Description |
|---|
WeightedMember(PiActionProfileMemberId memberId,
int weight)
Creates a new reference for the given action profile member ID and
weight.
|
WeightedMember(PiActionProfileMember memberInstance,
int weight)
Creates a new reference from the given action profile member instance
and weight.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
int |
hashCode() |
PiActionProfileMemberId |
id()
Returns the ID of the action profile member.
|
PiActionProfileMember |
instance()
If present, returns the instance of the action profile member pointed
by this reference, otherwise returns null.
|
String |
toString() |
int |
weight()
Returns the weight of this group member.
|
public static final int DEFAULT_WEIGHT
public WeightedMember(PiActionProfileMemberId memberId, int weight)
memberId - action profile member IDweight - weightpublic WeightedMember(PiActionProfileMember memberInstance, int weight)
instance()).memberInstance - action profile member instanceweight - weightpublic PiActionProfileMemberId id()
public int weight()
public PiActionProfileMember instance()