getSamSlot static method

int getSamSlot(
  1. SamSlot samSlot
)

Implementation

static int getSamSlot(SamSlot samSlot) {
  switch (samSlot) {
    case SamSlot.slot_1:
      return 1;
    case SamSlot.slot_2:
      return 2;
  }
}