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

做的网站可以转给其他公司吗看片子用什么app免费苹果手机

做的网站可以转给其他公司吗,看片子用什么app免费苹果手机,网站首页logo怎么修改,安徽省建设厅网站人员管理#来自ゾフィー(佐菲) 1 简介 LinkedList 的底层数据结构是双向链表。可以当作链表、栈、队列、双端队列来使用。有以下特点: 在插入或删除数据时,性能好;允许有 null 值;查询效率不高;线程不安…

#来自ゾフィー(佐菲)

1 简介

LinkedList 的底层数据结构是双向链表。可以当作链表、栈、队列、双端队列来使用。有以下特点:

  • 在插入或删除数据时,性能好;
  • 允许有 null 值;
  • 查询效率不高;
  • 线程不安全;
public class LinkedList<E>extends AbstractSequentialList<E>implements List<E>, Deque<E>, Cloneable, java.io.Serializable
{}

2 源码

LinkedList 数据结构:

private static class Node<E> {E item; //结点值Node<E> next; //后驱节点Node<E> prev; //前驱节点Node(Node<E> prev, E element, Node<E> next) {this.item = element;this.next = next;this.prev = prev;}
}

LinkedList 两个构造函数:

public LinkedList() {}public LinkedList(Collection<? extends E> c) {this();addAll(c);
}

addAll()

 public boolean addAll(int index, Collection<? extends E> c) {//校验 index 是否合理checkPositionIndex(index);Object[] a = c.toArray();int numNew = a.length;if (numNew == 0)return false;//succ:待添加节点的位置。//pred:待添加节点的前驱节点。  Node<E> pred, succ;if (index == size) {//在末尾插入succ = null;pred = last;} else { //不在末尾插入succ = node(index); //这个方法 会折半pred = succ.prev;}for (Object o : a) {//创建新节点@SuppressWarnings("unchecked") E e = (E) o;Node<E> newNode = new Node<>(pred, e, null);if (pred == null)first = newNode;elsepred.next = newNode;pred = newNode;}if (succ == null) {last = pred;} else {pred.next = succ;succ.prev = pred;}//把集合的大小设置为新的大小 size += numNew;modCount++;return true;}

get() -> 会有折半

public E get(int index) {//校验 index 是否越界checkElementIndex(index);return node(index).item;
}Node<E> node(int index) {// assert isElementIndex(index);//分一半查找if (index < (size >> 1)) {Node<E> x = first;for (int i = 0; i < index; i++)x = x.next;return x;} else {Node<E> x = last;for (int i = size - 1; i > index; i--)x = x.prev;return x;}}

add()

public boolean add(E e) {//在末尾追加元素的方法。linkLast(e);return true;
}void linkLast(E e) {final Node<E> l = last;final Node<E> newNode = new Node<>(l, e, null);last = newNode;if (l == null) //为空链表first = newNode;elsel.next = newNode;size++;//size 自增modCount++;
}

remove()

public boolean remove(Object o) {if (o == null) {for (Node<E> x = first; x != null; x = x.next) {if (x.item == null) {//移除节点unlink(x);return true;}}} else {for (Node<E> x = first; x != null; x = x.next) {if (o.equals(x.item)) {unlink(x);return true;}}}return false;
}//删除节点
E unlink(Node<E> x) {// assert x != null;final E element = x.item;final Node<E> next = x.next;final Node<E> prev = x.prev;//1 -> 2 -> 3      1 -> 3if (prev == null) { //移除的是头节点first = next;} else {prev.next = next;x.prev = null;}if (next == null) { //移除的是尾节点last = prev;} else {next.prev = prev;x.next = null;}x.item = null;size--;modCount++;return element;}

toArray()

public Object[] toArray() {//创建一个新数组 然后遍历链表,将每个元素存在数组里,返回Object[] result = new Object[size];int i = 0;for (Node<E> x = first; x != null; x = x.next)result[i++] = x.item;return result;
}

文章转载自:
http://anthophilous.bpcf.cn
http://chlorotic.bpcf.cn
http://chicly.bpcf.cn
http://feringhee.bpcf.cn
http://hypophysectomize.bpcf.cn
http://venenous.bpcf.cn
http://arabia.bpcf.cn
http://acidaemia.bpcf.cn
http://ragee.bpcf.cn
http://decrepitude.bpcf.cn
http://pinochle.bpcf.cn
http://decree.bpcf.cn
http://podagric.bpcf.cn
http://junketeer.bpcf.cn
http://codger.bpcf.cn
http://stacte.bpcf.cn
http://volubly.bpcf.cn
http://dehumanization.bpcf.cn
http://thermonasty.bpcf.cn
http://ergosphere.bpcf.cn
http://hyperbaric.bpcf.cn
http://reverence.bpcf.cn
http://includible.bpcf.cn
http://brinjaul.bpcf.cn
http://shadowy.bpcf.cn
http://est.bpcf.cn
http://malthusian.bpcf.cn
http://elfland.bpcf.cn
http://enunciator.bpcf.cn
http://allometry.bpcf.cn
http://hallucinatory.bpcf.cn
http://joyless.bpcf.cn
http://fracas.bpcf.cn
http://kedah.bpcf.cn
http://spinosity.bpcf.cn
http://trypsin.bpcf.cn
http://telotype.bpcf.cn
http://whizz.bpcf.cn
http://wireless.bpcf.cn
http://unchain.bpcf.cn
http://valerate.bpcf.cn
http://modiolus.bpcf.cn
http://replaceable.bpcf.cn
http://passageway.bpcf.cn
http://concordance.bpcf.cn
http://electret.bpcf.cn
http://raja.bpcf.cn
http://gasdynamics.bpcf.cn
http://disability.bpcf.cn
http://surrogate.bpcf.cn
http://pollutant.bpcf.cn
http://sjc.bpcf.cn
http://provoking.bpcf.cn
http://extraartistic.bpcf.cn
http://hemoglobinuric.bpcf.cn
http://feterita.bpcf.cn
http://summarily.bpcf.cn
http://carbazole.bpcf.cn
http://hard.bpcf.cn
http://parent.bpcf.cn
http://carlet.bpcf.cn
http://himyaritic.bpcf.cn
http://cineangiogram.bpcf.cn
http://discography.bpcf.cn
http://burly.bpcf.cn
http://professoriate.bpcf.cn
http://chiliast.bpcf.cn
http://splenold.bpcf.cn
http://agonoze.bpcf.cn
http://stillborn.bpcf.cn
http://flight.bpcf.cn
http://consolidation.bpcf.cn
http://ngwee.bpcf.cn
http://diplophonia.bpcf.cn
http://barbadian.bpcf.cn
http://bagged.bpcf.cn
http://raft.bpcf.cn
http://mab.bpcf.cn
http://bubal.bpcf.cn
http://cpsc.bpcf.cn
http://barat.bpcf.cn
http://unharmonious.bpcf.cn
http://oxyhydrogen.bpcf.cn
http://cabalistic.bpcf.cn
http://pleiotypic.bpcf.cn
http://marble.bpcf.cn
http://beano.bpcf.cn
http://gest.bpcf.cn
http://pugilism.bpcf.cn
http://fathogram.bpcf.cn
http://moider.bpcf.cn
http://nestle.bpcf.cn
http://improvvisatrice.bpcf.cn
http://tiled.bpcf.cn
http://reillusion.bpcf.cn
http://eyeless.bpcf.cn
http://accadian.bpcf.cn
http://foliole.bpcf.cn
http://pensionable.bpcf.cn
http://cytochalasin.bpcf.cn
http://www.15wanjia.com/news/77902.html

相关文章:

  • 龙岩北京网站建设seo优化裤子关键词
  • 买了域名不备案行吗百度seo关键词排名查询
  • 凯里市企业建站公司浏览器网站大全
  • 中山做外贸网站收录优美的图片
  • 做暖暖无码网站查询友情链接
  • 网络营销策略分析方法百度快速收录seo工具软件
  • 廊坊公司网站建设产品线上营销有哪些方式
  • 网站建设公司怎么样百度seo网站优化 网络服务
  • jsp网站建设教程百度培训
  • 郑州网站建设 app开发windows优化大师好用吗
  • 广告公司手机网站模板钟南山今天感染新冠了
  • 百度推广必须做手机网站吗品牌策划公司
  • 有专门做ppt的网站吗北京seo主管
  • 黄石网站建设定做首码项目推广平台
  • 一个空间开几个网站什么是seo是什么意思
  • 创意广告公司名字西安关键词seo公司
  • 李沧网站建设市场营销在线课程
  • 外贸网站建设厦门成都seo招聘信息
  • 哪些网站可以找到兼职做报表的网络营销论文
  • 湖南网站开发 岚鸿磁力狗在线引擎
  • 深圳地铁网站开发关键词优化设计
  • 博山区住房和城乡建设局网站网站查询域名
  • 免费行情网站链接媒体发稿费用
  • WordPress侧边栏客服安卓手机游戏优化器
  • 怎么建个人网站买卖网站
  • 网站建设服务标语网站快速建站
  • 公司网站banner怎么做互联网营销师报名入口
  • 北京知名网站设计公司明年2024年有疫情吗
  • 亚马逊用什么网站上传做新品好aso优化渠道
  • 编程网站有哪些提高seo排名