Skip to content

Commit 002d59f

Browse files
committed
Initial commit
0 parents  commit 002d59f

15 files changed

Lines changed: 2230 additions & 0 deletions

‎JavaWeb.iml‎

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<module type="JAVA_MODULE" version="4">
3+
<component name="FacetManager">
4+
<facet type="web" name="Web">
5+
<configuration>
6+
<descriptors>
7+
<deploymentDescriptor name="web.xml" url="file://$MODULE_DIR$/web/WEB-INF/web.xml" />
8+
</descriptors>
9+
<webroots>
10+
<root url="file://$MODULE_DIR$/web" relative="/" />
11+
</webroots>
12+
</configuration>
13+
</facet>
14+
</component>
15+
<component name="NewModuleRootManager" inherit-compiler-output="true">
16+
<exclude-output />
17+
<content url="file://$MODULE_DIR$">
18+
<sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" />
19+
</content>
20+
<orderEntry type="inheritedJdk" />
21+
<orderEntry type="sourceFolder" forTests="false" />
22+
<orderEntry type="module-library" exported="">
23+
<library>
24+
<CLASSES>
25+
<root url="jar://$MODULE_DIR$/../apache-tomcat-7.0.68/lib/servlet-api.jar!/" />
26+
</CLASSES>
27+
<JAVADOC />
28+
<SOURCES />
29+
</library>
30+
</orderEntry>
31+
<orderEntry type="module-library" exported="">
32+
<library>
33+
<CLASSES>
34+
<root url="jar://$MODULE_DIR$/../apache-tomcat-7.0.68/lib/jsp-api.jar!/" />
35+
</CLASSES>
36+
<JAVADOC />
37+
<SOURCES />
38+
</library>
39+
</orderEntry>
40+
<orderEntry type="module-library" exported="">
41+
<library>
42+
<CLASSES>
43+
<root url="jar://$MODULE_DIR$/../apache-tomcat-7.0.68/lib/el-api.jar!/" />
44+
</CLASSES>
45+
<JAVADOC />
46+
<SOURCES />
47+
</library>
48+
</orderEntry>
49+
<orderEntry type="module-library" exported="">
50+
<library>
51+
<CLASSES>
52+
<root url="jar://$MODULE_DIR$/../apache-tomcat-7.0.68/lib/jasper-el.jar!/" />
53+
</CLASSES>
54+
<JAVADOC />
55+
<SOURCES />
56+
</library>
57+
</orderEntry>
58+
<orderEntry type="module-library" exported="">
59+
<library>
60+
<CLASSES>
61+
<root url="jar://$MODULE_DIR$/../apache-tomcat-7.0.68/lib/annotations-api.jar!/" />
62+
</CLASSES>
63+
<JAVADOC />
64+
<SOURCES />
65+
</library>
66+
</orderEntry>
67+
</component>
68+
</module>
Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
package com.zejian.structures.LinkedList;
2+
3+
/**
4+
* Created by zejian on 2016/10/21.
5+
* 链表顶级接口
6+
*/
7+
public interface ILinkedList<T> {
8+
/**
9+
* 判断链表是否为空
10+
* @return
11+
*/
12+
boolean isEmpty();
13+
14+
/**
15+
* 链表长度
16+
* @return
17+
*/
18+
int length();
19+
20+
/**
21+
* 获取元素
22+
* @param index
23+
* @return
24+
*/
25+
T get(int index);
26+
27+
/**
28+
* 设置某个结点的的值
29+
* @param index
30+
* @param data
31+
* @return
32+
*/
33+
T set(int index, T data);
34+
35+
/**
36+
* 根据index添加结点
37+
* @param index
38+
* @param data
39+
* @return
40+
*/
41+
boolean add(int index, T data);
42+
43+
/**
44+
* 添加结点
45+
* @param data
46+
* @return
47+
*/
48+
boolean add(T data);
49+
50+
/**
51+
* 根据index移除结点
52+
* @param index
53+
* @return
54+
*/
55+
T remove(int index);
56+
57+
/**
58+
* 根据data移除结点
59+
* @param data
60+
* @return
61+
*/
62+
boolean removeAll(T data);
63+
64+
/**
65+
* 清空链表
66+
*/
67+
void clear();
68+
69+
/**
70+
* 是否包含data结点
71+
* @param data
72+
* @return
73+
*/
74+
boolean contains(T data);
75+
76+
77+
/**
78+
* 输出格式
79+
* @return
80+
*/
81+
String toString();
82+
83+
}
Lines changed: 103 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,103 @@
1+
package com.zejian.structures.LinkedList;
2+
3+
/**
4+
* Created by zejian on 2016/10/30.
5+
* 顺序表顶级接口
6+
*/
7+
public interface ISeqList<T> {
8+
9+
/**
10+
* 判断链表是否为空
11+
* @return
12+
*/
13+
boolean isEmpty();
14+
15+
/**
16+
* 链表长度
17+
* @return
18+
*/
19+
int length();
20+
21+
/**
22+
* 获取元素
23+
* @param index
24+
* @return
25+
*/
26+
T get(int index);
27+
28+
/**
29+
* 设置某个结点的的值
30+
* @param index
31+
* @param data
32+
* @return
33+
*/
34+
T set(int index, T data);
35+
36+
/**
37+
* 根据index添加结点
38+
* @param index
39+
* @param data
40+
* @return
41+
*/
42+
boolean add(int index, T data);
43+
44+
/**
45+
* 添加结点
46+
* @param data
47+
* @return
48+
*/
49+
boolean add(T data);
50+
51+
/**
52+
* 根据index移除结点
53+
* @param index
54+
* @return
55+
*/
56+
T remove(int index);
57+
58+
/**
59+
* 根据data移除结点
60+
* @param data
61+
* @return
62+
*/
63+
boolean remove(T data);
64+
65+
/**
66+
* 根据data移除所有结点
67+
* @param data
68+
* @return
69+
*/
70+
boolean removeAll(T data);
71+
72+
/**
73+
* 清空链表
74+
*/
75+
void clear();
76+
77+
/**
78+
* 是否包含data结点
79+
* @param data
80+
* @return
81+
*/
82+
boolean contains(T data);
83+
84+
/**
85+
* 根据值查询下标
86+
* @param data
87+
* @return
88+
*/
89+
int indexOf(T data);
90+
91+
/**
92+
* 根据data值查询最后一个出现在顺序表中的下标
93+
* @param data
94+
* @return
95+
*/
96+
int lastIndexOf(T data);
97+
98+
/**
99+
* 输出格式
100+
* @return
101+
*/
102+
String toString();
103+
}

0 commit comments

Comments
 (0)