fromYear static method

LunarYear fromYear(
  1. int lunarYear
)

Implementation

static LunarYear fromYear(int lunarYear) {
  LunarYear y;
  if (null == _cacheYear || _cacheYear!.getYear() != lunarYear) {
    y = new LunarYear(lunarYear);
    _cacheYear = y;
  } else {
    y = _cacheYear!;
  }
  return y;
}