naming
This commit is contained in:
parent
7a905bb9b6
commit
e3e424bdf7
|
|
@ -26,7 +26,7 @@ public extension NumberFormattingService {
|
|||
|
||||
/// Computed static property. Use only once for `formatters` field implementation!
|
||||
static var computedFormatters: [NumberFormatType: NumberFormatter] {
|
||||
return Dictionary(uniqueKeysWithValues: NumberFormatType.allValues.map { ($0, $0.numberFormatter) })
|
||||
return Dictionary(uniqueKeysWithValues: NumberFormatType.allOptions.map { ($0, $0.numberFormatter) })
|
||||
}
|
||||
|
||||
static func numberFormatter(for format: NumberFormatType) -> NumberFormatter {
|
||||
|
|
|
|||
|
|
@ -25,8 +25,8 @@ import Foundation
|
|||
/// Protocol for describing number format.
|
||||
public protocol NumberFormat: Hashable {
|
||||
|
||||
/// All available options
|
||||
static var allValues: [Self] { get }
|
||||
/// All available options.
|
||||
static var allOptions: [Self] { get }
|
||||
|
||||
/// A NumberFormatter instance for this format.
|
||||
var numberFormatter: NumberFormatter { get }
|
||||
|
|
|
|||
Loading…
Reference in New Issue