C# Class PhoneNumbers.AreaCodeMap

Exibir arquivo Open project: naphaso/kilogram Class Usage Examples

Public Methods

Method Description
AreaCodeMap ( ) : System
Lookup ( PhoneNumber number ) : String
ToString ( ) : String
getAreaCodeMapStorage ( ) : AreaCodeMapStorageStrategy
getSmallerMapStorage ( String>.SortedDictionary areaCodeMap ) : AreaCodeMapStorageStrategy
readAreaCodeMap ( String>.SortedDictionary sortedAreaCodeMap ) : void

Private Methods

Method Description
binarySearch ( int start, int end, long value ) : int
createDefaultMapStorage ( ) : AreaCodeMapStorageStrategy
createFlyweightMapStorage ( ) : AreaCodeMapStorageStrategy
getSizeOfAreaCodeMapStorage ( AreaCodeMapStorageStrategy mapStorage, String>.SortedDictionary areaCodeMap ) : int

Method Details

AreaCodeMap() public method

public AreaCodeMap ( ) : System
return System

Lookup() public method

public Lookup ( PhoneNumber number ) : String
number PhoneNumber
return String

ToString() public method

public ToString ( ) : String
return String

getAreaCodeMapStorage() public method

public getAreaCodeMapStorage ( ) : AreaCodeMapStorageStrategy
return AreaCodeMapStorageStrategy

getSmallerMapStorage() public method

public getSmallerMapStorage ( String>.SortedDictionary areaCodeMap ) : AreaCodeMapStorageStrategy
areaCodeMap String>.SortedDictionary
return AreaCodeMapStorageStrategy

readAreaCodeMap() public method

public readAreaCodeMap ( String>.SortedDictionary sortedAreaCodeMap ) : void
sortedAreaCodeMap String>.SortedDictionary
return void