上一页 1 ··· 13 14 15 16 17 18 19 20 21 ··· 30 下一页
摘要: 源码: public boolean tryAcquire(int permits, long timeout, TimeUnit unit) { long timeoutMicros = max(unit.toMicros(timeout), 0); checkPermits(permits); 阅读全文
posted @ 2020-09-22 15:57 弓呆的胖次 阅读(2525) 评论(0) 推荐(0) 编辑
摘要: /* * Copyright (C) 2012 The Guava Authors * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in co 阅读全文
posted @ 2020-09-22 15:55 弓呆的胖次 阅读(155) 评论(0) 推荐(0) 编辑
摘要: https://www.jianshu.com/p/8f548e469bbe https://blog.csdn.net/forezp/article/details/100060686?utm_medium=distribute.pc_relevant_t0.none-task-blog-Blog 阅读全文
posted @ 2020-09-22 14:17 弓呆的胖次 阅读(124) 评论(0) 推荐(0) 编辑
摘要: 有参方法tryAcquire(int permits,long timeout,TimeUnit unit)的作用是在指定的时间timeout内尝试地获得permits个许可,如果获取不到则返回false。 下面semaphore.tryAcquire(2,2, TimeUnit.SECONDS)表 阅读全文
posted @ 2020-09-22 11:27 弓呆的胖次 阅读(1163) 评论(0) 推荐(0) 编辑
摘要: 我们知道Linux的目录结构为树状结构,最顶级的目录为根目录 /。 其他目录通过挂载可以将它们添加到树中,通过解除挂载可以移除它们。 在开始本教程前我们需要先知道什么是绝对路径与相对路径。 绝对路径:路径的写法,由根目录 / 写起,例如: /usr/share/doc 这个目录。 相对路径:路径的写 阅读全文
posted @ 2020-09-21 21:13 弓呆的胖次 阅读(248) 评论(0) 推荐(0) 编辑
摘要: 转载:https://www.cnblogs.com/JackZed/p/6888668.html 关于获取类的字段有两种方式:getFields()和getDeclaredFields()。我们先来看看这两者的区别吧: getFields():获得某个类的所有的公共(public)的字段,包括父类 阅读全文
posted @ 2020-09-18 10:15 弓呆的胖次 阅读(488) 评论(0) 推荐(0) 编辑
摘要: https://blog.csdn.net/qq_27093465/article/details/53159408 Map<String, Object> diffQuota = Maps.newHashMapWithExpectedSize(2); Maps.newHashMapWithExpe 阅读全文
posted @ 2020-07-20 17:54 弓呆的胖次 阅读(719) 评论(0) 推荐(0) 编辑
摘要: 作者:牛客6240202号链接:https://www.nowcoder.com/discuss/427543?type=post&order=time&pos=&page=1&channel=666&source_id=search_post来源:牛客网一面: (1)Java面向对象,平时怎么用的 阅读全文
posted @ 2020-06-02 10:30 弓呆的胖次 阅读(198) 评论(0) 推荐(0) 编辑
摘要: 作者:HaiyerLu链接:https://www.nowcoder.com/discuss/428386?type=post&order=time&pos=&page=1&channel=666&source_id=search_post来源:牛客网 5.15面的华为,具体部门现在还没发offer 阅读全文
posted @ 2020-06-02 10:04 弓呆的胖次 阅读(820) 评论(0) 推荐(0) 编辑
摘要: 作者:ItsAbel链接:https://www.nowcoder.com/discuss/416688?type=all&order=time&pos=&page=3&channel=666&source_id=search_all来源:牛客网 华为面试一共两轮,技术面+业务总管面,在面试前一半需 阅读全文
posted @ 2020-06-01 09:23 弓呆的胖次 阅读(1025) 评论(0) 推荐(0) 编辑
上一页 1 ··· 13 14 15 16 17 18 19 20 21 ··· 30 下一页