public interface ServiceConfiguration
ServiceLoader
.Modifier and Type | Method | Description |
---|---|---|
Collection<javax.measure.Dimension> |
getBaseDimensions() |
This method returns the base dimensions to be tested for requirements and recommendations.
|
Collection<Class> |
getDimensionClasses() |
List a collection of
Dimension implementations. |
Collection<Class> |
getPrefixClasses() |
List a collection of
Prefix implementations. |
Collection<Class> |
getQuantityClasses() |
Return a collection with all
Quantity classes that are implemented. |
Collection<javax.measure.format.QuantityFormat> |
getQuantityFormats4Test() |
This method allows instances of QuantityFormat to be tested for requirements and recommendations.
|
Collection<Class<? extends javax.measure.Quantity>> |
getSupportedQuantityTypes() |
Return a collection with all supported
Quantity types. |
<Q extends javax.measure.Quantity<Q>> |
getUnit4Type(Class<Q> quantityType) |
Returns a matching unit for the specified quantity type.
|
Collection<Class> |
getUnitClasses() |
List a collection of
Unit implementations. |
Collection<javax.measure.UnitConverter> |
getUnitConverters4Test() |
This method allows instances of UnitConverter to be tested for requirements and recommendations.
|
Collection<javax.measure.format.UnitFormat> |
getUnitFormats4Test() |
This method allows instances of UnitFormat to be tested for requirements and recommendations.
|
Collection<? extends javax.measure.Unit<?>> |
getUnits4Test() |
This method allows instances of Unit to be tested for requirements and recommendations.
|
Collection<Class> getQuantityClasses()
Quantity
classes that are implemented. The list
must not be empty and should contain every quantity class implemented.
This enables the TCK to check in addition to the basic implementation compliance, if
according ServiceProvider
is registered/available.
Collection<Class> getUnitClasses()
Unit
implementations.This enables the TCK to check the basic implementation compliance.
Collection<Class> getDimensionClasses()
Dimension
implementations.This enables the TCK to check the basic implementation compliance.
Dimension
implementations to be tested.Collection<Class> getPrefixClasses()
Prefix
implementations.This enables the TCK to check the basic implementation compliance.
Prefix
implementations to be tested.Collection<Class<? extends javax.measure.Quantity>> getSupportedQuantityTypes()
Quantity
types. The list
must not return null, but could be empty in certain profiles.<Q extends javax.measure.Quantity<Q>> javax.measure.Unit<Q> getUnit4Type(Class<Q> quantityType)
SystemOfUnits
or implementations in profiles without SPI.Q
- the compile-time quantity type.quantityType
- the quantity type.Collection<? extends javax.measure.Unit<?>> getUnits4Test()
Collection<javax.measure.Dimension> getBaseDimensions()
Collection<javax.measure.UnitConverter> getUnitConverters4Test()
Collection<javax.measure.format.UnitFormat> getUnitFormats4Test()
Collection<javax.measure.format.QuantityFormat> getQuantityFormats4Test()
Copyright © 2005–2019 Units of Measurement project. All rights reserved.