This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Hashmap(object): | |
""" | |
character holding hash map | |
""" | |
def __init__(self, hash_fn, length=100): | |
assert hasattr(hash_fn, '__call__'), 'You must provide a hash function' | |
self._buckets = [None] * length | |
self.hash_len = length | |
self.hash_fn = hash_fn |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.rain.example.data.provider; | |
import com.rain.example.data.database.RainEmployeeDatabase; | |
import com.rain.example.data.database.table.*; | |
import android.provider.BaseColumns; | |
import android.text.TextUtils; | |
import android.content.ContentUris; | |
import android.database.sqlite.SQLiteQueryBuilder; |