public static BpStatus getByValue(final Short value) { for (final BpStatus type : BpStatus.values()) { if (value == type.value) return type; } return BpStatus.INVALID; }
/** * Get status field * * @return status */ public BpStatus getStatus() { Short value = getFieldShortValue(8, 0, Fit.SUBFIELD_INDEX_MAIN_FIELD); if (value == null) return null; return BpStatus.getByValue(value); }
/** * Get status field * * @return status */ public BpStatus getStatus() { Short value = getFieldShortValue(8); if (value == null) return null; return BpStatus.getByValue(value); }