一个安卓项目运行在5.0的设备上就会报错
来源:互联网 发布:看门狗2唐人街数据 编辑:程序博客网 时间:2024/05/21 00:47
以下是错误日志
以下是提示错误的类的代码
以下是提示错误的类的代码
/*
* Copyright (c) 2013. wyouflf (wyouflf@gmail.com)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.c1tech.dress.bitmap.xutils.util.core;
import java.util.concurrent.ConcurrentHashMap;
/**
* Author: wyouflf
* Date: 13-8-1
* Time: 上午11:25
*/
public class KeyExpiryMap<K, V> extends ConcurrentHashMap<K, Long> {
/**
*
*/
private static final long serialVersionUID = 1L;
private static final int DEFAULT_CONCURRENCY_LEVEL = 16;
public KeyExpiryMap(int initialCapacity, float loadFactor, int concurrencyLevel) {
super(initialCapacity, loadFactor, concurrencyLevel);
}
public KeyExpiryMap(int initialCapacity, float loadFactor) {
super(initialCapacity, loadFactor, DEFAULT_CONCURRENCY_LEVEL);
}
public KeyExpiryMap(int initialCapacity) {
super(initialCapacity);
}
public KeyExpiryMap() {
super();
}
@Override
public synchronized Long get(Object key) {
if (this.containsKey(key)) {
return super.get(key);
} else {
return null;
}
}
@Override
public synchronized Long put(K key, Long expiryTimestamp) {
if (this.containsKey(key)) {
this.remove(key);
}
return super.put(key, expiryTimestamp);
}
@Override
public synchronized boolean containsKey(Object key) {
boolean result = false;
if (super.containsKey(key)) {
if (System.currentTimeMillis() < super.get(key)) {
result = true;
} else {
this.remove(key);
}
}
return result;
}
@Override
public synchronized Long remove(Object key) {
return super.remove(key);
}
@Override
public synchronized void clear() {
super.clear();
}
}
0 0
- 一个安卓项目运行在5.0的设备上就会报错
- vs创建的cocos2d项目在安卓设备上运行并生成apk
- 在安卓设备上运行可视化GUN/linux
- react native 开发的app在安卓设备上运行
- Android studio2.2.3从一个计算机复制过来的代码突然就会报错,有时建新的项目也会报错
- onvif 服务端设备发现在linux上运行不会报错,但是交叉编译运行在嵌入式开发板上是会报错
- 在逍遥安卓模拟器上运行android studio项目
- 安卓在Eclipse上开发遇到项目运行不了的终极解决办法
- PLSQL Developer 没有64位版本,所以在64位系统上运行该程链接64位Oracle时就会报错
- 在你的安卓设备上的编译器
- phpexcel导出的问题,在本地没有问题,但是在服务器上就会报这个访问不到的错误
- 在安卓和linux设备上添加event设备
- Monkey 是运行在模拟器或设备上的一个工具,用来伪随机
- 在yolo训练的时候又去测试就会报错:cuda error: out of memory
- Android一个项目,打包成不同的包,并在同一设备运行
- Win7上的ASP.NET MVC3项目在Win10上运行的一个坑
- 将修改后的项目部署到tomcat上运行后还会报老版本的错误,问题解决
- U3D中的Profile也是可以直接在链接安卓设备运行游戏下查看的
- cp 快捷命令:复制文件到多个目录
- 我在路上---过程PK结果
- UE4 在C++ 动态生成几何、BSP体、BRUSH ---- MESH_GENERATION
- poj 2718(搜索+剪枝)C语言实现
- 【Codeforces 752 C New Year and Rating】+ 思维
- 一个安卓项目运行在5.0的设备上就会报错
- Unreal Engine 4 —— 使用ProceduralMeshComponent实现模型实时切割
- The application's PagerAdapter changed the adapter's contents without calling PagerAdapter#notifyDat
- MySql+PHP实现分页
- 如何选择文件系统:EXT4、Btrfs 和 XFS
- 在一个无序数组中找到第K个最小或者最大的元素
- 我不要的彷徨
- 数据结构课程设计
- 持续集成的回归测试框架