Top Fields Constructors Methods
tech.units.indriya.spi

public abstract Class AbstractSystemOfUnitsService

extends Object
implements SystemOfUnitsService
Class Inheritance
All Implemented Interfaces
javax.measure.spi.SystemOfUnitsService
Known Direct Subclasses
tech.units.indriya.unit.DefaultSystemOfUnitsService
Imports
java.util.Collection, .Map, java.util.concurrent.ConcurrentHashMap, javax.measure.spi.SystemOfUnits, .SystemOfUnitsService

Author
Werner Keil
Since
2.0
Version
1.1, August 21, 2019

Field Summary

Modifier and TypeField and Description
protected final Map<String, SystemOfUnits>

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public Collection<SystemOfUnits>
public SystemOfUnits
getSystemOfUnits(String
the system of unit name.
name
)

Implements javax.measure.spi.SystemOfUnitsService.getSystemOfUnits.

Returns the system of units having the specified name or null if none is found.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

souMapback to summary
protected final Map<String, SystemOfUnits> souMap

Constructor Detail

AbstractSystemOfUnitsServiceback to summary
public AbstractSystemOfUnitsService()

Method Detail

getAvailableSystemsOfUnitsback to summary
public Collection<SystemOfUnits> getAvailableSystemsOfUnits()

Implements javax.measure.spi.SystemOfUnitsService.getAvailableSystemsOfUnits.

Doc from javax.measure.spi.SystemOfUnitsService.getAvailableSystemsOfUnits.

Gets a list with available systems for this SystemOfUnitsService.

Returns:Collection<SystemOfUnits>

list of available systems of units, never null.

Annotations
@Override
getSystemOfUnitsback to summary
public SystemOfUnits getSystemOfUnits(String name)

Implements javax.measure.spi.SystemOfUnitsService.getSystemOfUnits.

Doc from javax.measure.spi.SystemOfUnitsService.getSystemOfUnits.

Returns the system of units having the specified name or null if none is found.

Parameters
name:String

the system of unit name.

Returns:SystemOfUnits

the system of units for the given name.

Annotations
@Override