getPluralization static method

CzechDurationLocalePluralization getPluralization(
  1. int amount
)

Implementation

static CzechDurationLocalePluralization getPluralization(int amount) {
  if (amount == 1) {
    return CzechDurationLocalePluralization.one;
  } else if (amount > 1 && amount < 5) {
    return CzechDurationLocalePluralization.few;
  } else {
    return CzechDurationLocalePluralization.many;
  }
}