当前位置: 首页 > news >正文

如何与对方网站做相互链接建设钓鱼网站

如何与对方网站做相互链接,建设钓鱼网站,网站页面下载,seo入门书籍一、Maps Maps有许多很酷的实用程序#xff0c;值得单独解释。 1、uniqueIndex Maps.uniqueIndex#xff08;Iterable#xff0c;Function#xff09;解决了一个常见的情况#xff0c;即有一堆对象#xff0c;每个对象都有一些唯一的属性#xff0c;并希望能够根据该…一、Maps Maps有许多很酷的实用程序值得单独解释。 1、uniqueIndex Maps.uniqueIndexIterableFunction解决了一个常见的情况即有一堆对象每个对象都有一些唯一的属性并希望能够根据该属性查找这些对象。 假设我们有一堆字符串我们知道它们有唯一的长度我们希望能够查找具有特定长度的字符串。 ImmutableMapInteger, String stringsByIndex Maps.uniqueIndex(strings, new FunctionString, Integer () {public Integer apply(String string) {return string.length();}}); 如果索引不是唯一的请参阅下面的Multimaps.index。 2、difference Maps.differenceMapMap允许您比较两张地图之间的所有差异。它返回一个MapDifference对象该对象将Venn图分解为 Method Description entriesInCommon() The entries which are in both maps, with both matching keys and values. entriesDiffering() 具有相同键但不同值的条目。此映射中的值属于MapDifference.ValueDifference类型可以查看左右值。 entriesOnlyOnLeft() Returns the entries whose keys are in the left but not in the right map. entriesOnlyOnRight() Returns the entries whose keys are in the right but not in the left map. MapString, Integer left ImmutableMap.of(a, 1, b, 2, c, 3); MapString, Integer right ImmutableMap.of(b, 2, c, 4, d, 5); MapDifferenceString, Integer diff Maps.difference(left, right);diff.entriesInCommon(); // {b 2} diff.entriesDiffering(); // {c (3, 4)} diff.entriesOnlyOnLeft(); // {a 1} diff.entriesOnlyOnRight(); // {d 5} 3、BiMap  BiMap上的Guava实用程序位于Maps类中因为BiMap也是Map。 BiMap utility Corresponding Map utility synchronizedBiMap(BiMap) Collections.synchronizedMap(Map) unmodifiableBiMap(BiMap) Collections.unmodifiableMap(Map) 4、Static Factories 映射提供以下静态工厂方法。 Implementation Factories HashMap basic, from Map, with expected size LinkedHashMap basic, from Map TreeMap basic, from Comparator, from SortedMap EnumMap from Class, from Map ConcurrentMap basic IdentityHashMap basic 二、Multisets 标准集合操作如containsAll忽略多集合中元素的计数只关心元素是否在多集合中。多集提供了许多考虑多集中元素多重性的操作。 Method Explanation Difference from Collection method containsOccurrences(Multiset sup, Multiset sub) Returns true if sub.count(o) super.count(o) for all o. Collection.containsAll忽略计数只测试是否包含元素。 removeOccurrences(Multiset removeFrom, Multiset toRemove) Removes one occurrence in removeFrom for each occurrence of an element in toRemove. Collection.removeAll将删除在to Remove中出现一次的任何元素的所有实例。 retainOccurrences(Multiset removeFrom, Multiset toRetain) Guarantees that removeFrom.count(o) toRetain.count(o) for all o. Collection.retail将所有出现的元素保留为Retain。 intersection(Multiset, Multiset) 返回两个多集的交集的视图一种非破坏性的替代方案。 Has no analogue. MultisetString multiset1 HashMultiset.create(); multiset1.add(a, 2);MultisetString multiset2 HashMultiset.create(); multiset2.add(a, 5);multiset1.containsAll(multiset2); // returns true: all unique elements are contained,// even though multiset1.count(a) 2 multiset2.count(a) 5 Multisets.containsOccurrences(multiset1, multiset2); // returns falseMultisets.removeOccurrences(multiset2, multiset1); // multiset2 now contains 3 occurrences of amultiset2.removeAll(multiset1); // removes all occurrences of a from multiset2, even though multiset1.count(a) 2 multiset2.isEmpty(); // returns true Multiset中的其他实用程序包括 Method Description copyHighestCountFirst(Multiset) 返回multiset的不可变副本该副本按频率降序迭代元素。 unmodifiableMultiset(Multiset) Returns an unmodifiable view of the multiset. unmodifiableSortedMultiset(SortedMultiset) Returns an unmodifiable view of the sorted multiset. MultisetString multiset HashMultiset.create(); multiset.add(a, 3); multiset.add(b, 5); multiset.add(c, 1);ImmutableMultisetString highestCountFirst Multisets.copyHighestCountFirst(multiset);// highestCountFirst, like its entrySet and elementSet, iterates over the elements in order {b, a, c} 三、Multimaps Multimaps提供了许多通用的实用程序操作值得单独解释。 1、index Maps.uniqueIndexMultimaps.indexIterableFunction的表亲回答了这样一种情况即当您希望能够查找具有某些特定共同属性的所有对象时这些属性不一定是唯一的。 假设我们希望根据字符串的长度对其进行分组。 ImmutableSetString digits ImmutableSet.of(zero, one, two, three, four,five, six, seven, eight, nine); FunctionString, Integer lengthFunction new FunctionString, Integer() {public Integer apply(String string) {return string.length();} }; ImmutableListMultimapInteger, String digitsByLength Multimaps.index(digits, lengthFunction); /** digitsByLength maps:* 3 {one, two, six}* 4 {zero, four, five, nine}* 5 {three, seven, eight}*/ 2、invertFrom 由于多映射可以将多个关键点映射到一个值也可以将一个关键点映像到多个值因此反转多映射非常有用。Guava提供inverteFromMultimap to InvertMultimap dest让您无需选择实现即可完成此操作。 注意如果您使用的是ImmutableMultimap请考虑使用ImmutableMultimap.inverse。 ArrayListMultimapString, Integer multimap ArrayListMultimap.create(); multimap.putAll(b, Ints.asList(2, 4, 6)); multimap.putAll(a, Ints.asList(4, 2, 1)); multimap.putAll(c, Ints.asList(2, 5, 3));TreeMultimapInteger, String inverse Multimaps.invertFrom(multimap, TreeMultimap.Integer, Stringcreate()); // note that we choose the implementation, so if we use a TreeMultimap, we get results in order /** inverse maps:* 1 {a}* 2 {a, b, c}* 3 {c}* 4 {a, b}* 5 {c}* 6 {b}*/ 3、forMap 需要在地图上使用Multimap方法吗forMapMap将Map视为SetMultimap。例如与Multimaps.inverteFrom组合使用时这一功能特别有用。 MapString, Integer map ImmutableMap.of(a, 1, b, 1, c, 2); SetMultimapString, Integer multimap Multimaps.forMap(map); // multimap maps [a {1}, b {1}, c {2}] MultimapInteger, String inverse Multimaps.invertFrom(multimap, HashMultimap.Integer, String create()); // inverse maps [1 {a, b}, 2 {c}] 四、Tables Tables类提供了一些方便的实用程序。 1、customTable 与Multimaps.newXXXMultimapMapSupplier实用程序类似Tables.newCustomTableMap供应商Map允许您使用任何喜欢的行或列映射指定表实现。 // use LinkedHashMaps instead of HashMaps TableString, Character, Integer table Tables.newCustomTable(Maps.String, MapCharacter, IntegernewLinkedHashMap(),new SupplierMapCharacter, Integer () {public MapCharacter, Integer get() {return Maps.newLinkedHashMap();}});
http://www.huolong8.cn/news/243832/

相关文章:

  • 网站报错 500焦作seo公司
  • c做的网站外包活加工官方网站
  • 有趣网站之家优化推广服务
  • asp.net商务网站 包括哪些文件新闻营销的优势
  • 网站做三屏合一做网站的研究生专业
  • 怎么才能建立一个网站怎么在网上接网站开发的工作
  • 博物馆网站建设目的营销型网站如何建设
  • 主流做网站程序代码什么企业适合做网站
  • 济南网站建设代码模板建站哪家好
  • 网站 固定ip微信营销课
  • 东莞市建设安监局网站首页ps怎么做网站横幅广告
  • 怎么给网站添加关键词python游戏开发
  • 域名不变修改网站怎么做洛阳网站开发公司
  • 什么是网站二级目录wordpress所有栏目循环输出
  • 有什么好用的模拟建站软件大连最新发布
  • WordPress发送邮件按钮开鲁网站seo免费版
  • 表白网站制作平台如何在百度搜到自己的网站
  • 凡科建站网哪里有网站制作服务
  • 智慧团建信息系统网站登录韩雪冬个人网站 北京
  • 新手建什么网站赚钱吗湛江房产网
  • 网站建设 在电商的作用驻马店网站建设
  • 西安商城网站开发张家港做网站多少钱
  • 虹口建设机械网站新东方托福班价目表
  • 知名企业的企业文化优化方案2022
  • 园林景观 网站建设营销型网站建设风格设定包括哪些方面
  • 网站开发的税率深圳企业网站建设公司
  • 自己做网站才是互联网域名估价查询
  • 惠州做网站优化WordPress对接微信公众号
  • 天津建设部网站首页计算机学软件开发哪个学校好
  • 网站建设的安全性问题全屋定制一般多少钱