public class UnitsCache extends Object
Constructor and Description |
---|
UnitsCache()
Simple constructor.
|
Modifier and Type | Method and Description |
---|---|
Unit |
getUnits(String specification)
Get units from a string specification.
|
public Unit getUnits(String specification)
Parsing is performed only the first time a specification is encountered, so the cache speeds up cases where the same units is encountered many times (for example when parsing CCSDS messages with many entries).
specification
- units specification (may be null)Unit.NONE
if specification is null)Copyright © 2002-2021 CS GROUP. All rights reserved.