class DiskUserDataStore implements UserDataStore {

    @Override
    public void getUserEntityDetails(int id,
                                     final UserDetailsCallback userDetailsCallback) {
        this.userCache.get(id, new UserCache.UserCacheCallback() {
            @Override
            public void onUserEntityLoaded(UserEntity userEntity) {
                userDetailsCallback.onUserEntityLoaded(userEntity);
            }

            @Override
            public void onError(Exception exception) {
                userDetailsCallback.onError(exception);
            }
        });
    }

}