Class ImeiRbiData
java.lang.Object
tools.pantheum.gaia.gs1.dataset.ImeiRbiData
Reference data for IMEI Reporting Body Identifiers (RBIs) — the leading 2 digits of a
Type Allocation Code, naming the GSMA-appointed body that allocated it.
Three kinds of code appear in REPORTING_BODIES:
- Currently allocating —
01(CTIA/PTCRB),35(TÜV SÜD BABT),86(TAF), plus99(Global Hexadecimal Administrator) and98(reserved). - Test ranges —
00and02–09, which mark test IMEIs rather than a real allocation. SeeisTestCode(String). - No longer allocating — historic bodies such as
49(BZT/BAPT, Germany) or44(BABT, UK). Handsets carrying them are ordinary and remain in service; only new allocation has ceased. SeeisNoLongerAllocating(String).
Source and staleness
Compiled from Wikipedia's Reporting Body Identifier listing, not from the GSMA directly, so it may lag the authoritative allocation list (GSMA TS.06 / the IMEI allocation process). Codes outside the ranges above are simply absent.
An unrecognised code therefore means "not in this table", never
"invalid IMEI" — a handset may legitimately carry a prefix newer than this file.
Callers must treat nameForCode(String) returning Optional.empty() as a
non-event and must not derive any validation outcome from it. The RBI is not a check
character and has no verifiable relationship to the rest of the IMEI.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionCodes whose bodies no longer allocate IMEIs.Maps 2-digit Reporting Body Identifiers to the allocating body's name.Codes denoting a test IMEI rather than a real allocation:00,02–09. -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanisNoLongerAllocating(String code) Whether the code belongs to a body that no longer allocates IMEIs.static booleanisTestCode(String code) Whether the code marks a test IMEI (00,02–09) rather than a real allocation.nameForCode(String code) Returns the reporting body's name for the given 2-digit RBI, orOptional.empty()if the code is not present in this table.
-
Field Details
-
REPORTING_BODIES
Maps 2-digit Reporting Body Identifiers to the allocating body's name. Iteration order groups the codes as the class documentation lists them — test ranges, then currently allocating, then retired — rather than sorting by code. Source: Wikipedia's RBI listing — see the class documentation. -
TEST_CODES
-
NO_LONGER_ALLOCATING
-
-
Method Details
-
nameForCode
Returns the reporting body's name for the given 2-digit RBI, orOptional.empty()if the code is not present in this table.- Parameters:
code- two-digit string, e.g."35"for TÜV SÜD BABT- Returns:
- a new
Optional<String>
-
isTestCode
Whether the code marks a test IMEI (00,02–09) rather than a real allocation.- Parameters:
code- the code- Returns:
- a new
boolean
-
isNoLongerAllocating
Whether the code belongs to a body that no longer allocates IMEIs. Reporting only: devices allocated under such a code remain valid and in service.- Parameters:
code- the code- Returns:
- a new
boolean
-