1 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN""http://www.w3.org/TR/REC-html40/loose.dtd"> |
---|
2 | <!--NewPage--> |
---|
3 | <HTML> |
---|
4 | <HEAD> |
---|
5 | <!-- Generated by javadoc on Wed Oct 02 14:27:57 PDT 2002 --> |
---|
6 | <TITLE> |
---|
7 | OrderedMap |
---|
8 | </TITLE> |
---|
9 | <LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style"> |
---|
10 | </HEAD> |
---|
11 | <SCRIPT> |
---|
12 | function asd() |
---|
13 | { |
---|
14 | parent.document.title="OrderedMap"; |
---|
15 | } |
---|
16 | </SCRIPT> |
---|
17 | <BODY BGCOLOR="white" onload="asd();"> |
---|
18 | |
---|
19 | <!-- ========== START OF NAVBAR ========== --> |
---|
20 | <A NAME="navbar_top"><!-- --></A> |
---|
21 | <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0"> |
---|
22 | <TR> |
---|
23 | <TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> |
---|
24 | <A NAME="navbar_top_firstrow"><!-- --></A> |
---|
25 | <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3"> |
---|
26 | <TR ALIGN="center" VALIGN="top"> |
---|
27 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> |
---|
28 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> |
---|
29 | <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> |
---|
30 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/OrderedMap.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> |
---|
31 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> |
---|
32 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> |
---|
33 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> |
---|
34 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> |
---|
35 | </TR> |
---|
36 | </TABLE> |
---|
37 | </TD> |
---|
38 | <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> |
---|
39 | </EM> |
---|
40 | </TD> |
---|
41 | </TR> |
---|
42 | |
---|
43 | <TR> |
---|
44 | <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
---|
45 | <A HREF="../../../../edu/stanford/rt/credential/LinkedRole.html"><B>PREV CLASS</B></A> |
---|
46 | <A HREF="../../../../edu/stanford/rt/credential/Principal.html"><B>NEXT CLASS</B></A></FONT></TD> |
---|
47 | <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
---|
48 | <A HREF="../../../../index.html" TARGET="_top"><B>FRAMES</B></A> |
---|
49 | <A HREF="OrderedMap.html" TARGET="_top"><B>NO FRAMES</B></A> |
---|
50 | |
---|
51 | <SCRIPT> |
---|
52 | <!-- |
---|
53 | if(window==top) { |
---|
54 | document.writeln('<A HREF="../../../../allclasses-noframe.html" TARGET=""><B>All Classes</B></A>'); |
---|
55 | } |
---|
56 | //--> |
---|
57 | </SCRIPT> |
---|
58 | <NOSCRIPT> |
---|
59 | <A HREF="../../../../allclasses-noframe.html" TARGET=""><B>All Classes</B></A> |
---|
60 | </NOSCRIPT> |
---|
61 | </FONT></TD> |
---|
62 | </TR> |
---|
63 | <TR> |
---|
64 | <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
---|
65 | SUMMARY: NESTED | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> |
---|
66 | <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
---|
67 | DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD> |
---|
68 | </TR> |
---|
69 | </TABLE> |
---|
70 | <!-- =========== END OF NAVBAR =========== --> |
---|
71 | |
---|
72 | <HR> |
---|
73 | <!-- ======== START OF CLASS DATA ======== --> |
---|
74 | <H2> |
---|
75 | <FONT SIZE="-1"> |
---|
76 | edu.stanford.rt.credential</FONT> |
---|
77 | <BR> |
---|
78 | Class OrderedMap</H2> |
---|
79 | <PRE> |
---|
80 | java.lang.Object |
---|
81 | | |
---|
82 | +--<B>edu.stanford.rt.credential.OrderedMap</B> |
---|
83 | </PRE> |
---|
84 | <HR> |
---|
85 | <DL> |
---|
86 | <DT>public class <B>OrderedMap</B><DT>extends java.lang.Object</DL> |
---|
87 | |
---|
88 | <P> |
---|
89 | <DL> |
---|
90 | <DT><B>Author:</B><DD>Ninghui Li, Sandra Qiu<br> |
---|
91 | |
---|
92 | OrderedMap maintains a map from key to values and the ordering |
---|
93 | of the keys.</DD> |
---|
94 | </DD> |
---|
95 | </DL> |
---|
96 | <HR> |
---|
97 | |
---|
98 | <P> |
---|
99 | <!-- ======== NESTED CLASS SUMMARY ======== --> |
---|
100 | |
---|
101 | |
---|
102 | <!-- =========== FIELD SUMMARY =========== --> |
---|
103 | |
---|
104 | <A NAME="field_summary"><!-- --></A> |
---|
105 | <TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"> |
---|
106 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
---|
107 | <TD COLSPAN=2><FONT SIZE="+2"> |
---|
108 | <B>Field Summary</B></FONT></TD> |
---|
109 | </TR> |
---|
110 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
111 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
112 | <CODE>private java.util.HashMap</CODE></FONT></TD> |
---|
113 | <TD><CODE><B><A HREF="../../../../edu/stanford/rt/credential/OrderedMap.html#dataMap">dataMap</A></B></CODE> |
---|
114 | |
---|
115 | <BR> |
---|
116 | map for the key-value pairs</TD> |
---|
117 | </TR> |
---|
118 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
119 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
120 | <CODE>private static int</CODE></FONT></TD> |
---|
121 | <TD><CODE><B><A HREF="../../../../edu/stanford/rt/credential/OrderedMap.html#DEFAULT_SIZE">DEFAULT_SIZE</A></B></CODE> |
---|
122 | |
---|
123 | <BR> |
---|
124 | defualt map capacity</TD> |
---|
125 | </TR> |
---|
126 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
127 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
128 | <CODE>private boolean</CODE></FONT></TD> |
---|
129 | <TD><CODE><B><A HREF="../../../../edu/stanford/rt/credential/OrderedMap.html#editable">editable</A></B></CODE> |
---|
130 | |
---|
131 | <BR> |
---|
132 | whether this map is editable</TD> |
---|
133 | </TR> |
---|
134 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
135 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
136 | <CODE>private java.lang.Class</CODE></FONT></TD> |
---|
137 | <TD><CODE><B><A HREF="../../../../edu/stanford/rt/credential/OrderedMap.html#keyClass">keyClass</A></B></CODE> |
---|
138 | |
---|
139 | <BR> |
---|
140 | key type</TD> |
---|
141 | </TR> |
---|
142 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
143 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
144 | <CODE>private java.util.ArrayList</CODE></FONT></TD> |
---|
145 | <TD><CODE><B><A HREF="../../../../edu/stanford/rt/credential/OrderedMap.html#keyList">keyList</A></B></CODE> |
---|
146 | |
---|
147 | <BR> |
---|
148 | also stores the keys as they are added to the list, |
---|
149 | so that we can remember the ordering of the keys.</TD> |
---|
150 | </TR> |
---|
151 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
152 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
153 | <CODE>private java.lang.Class</CODE></FONT></TD> |
---|
154 | <TD><CODE><B><A HREF="../../../../edu/stanford/rt/credential/OrderedMap.html#valueClass">valueClass</A></B></CODE> |
---|
155 | |
---|
156 | <BR> |
---|
157 | value type</TD> |
---|
158 | </TR> |
---|
159 | </TABLE> |
---|
160 | |
---|
161 | <!-- ======== CONSTRUCTOR SUMMARY ======== --> |
---|
162 | |
---|
163 | <A NAME="constructor_summary"><!-- --></A> |
---|
164 | <TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"> |
---|
165 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
---|
166 | <TD COLSPAN=2><FONT SIZE="+2"> |
---|
167 | <B>Constructor Summary</B></FONT></TD> |
---|
168 | </TR> |
---|
169 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
170 | <TD><CODE><B><A HREF="../../../../edu/stanford/rt/credential/OrderedMap.html#OrderedMap()">OrderedMap</A></B>()</CODE> |
---|
171 | |
---|
172 | <BR> |
---|
173 | Constructor for OrderedMap.</TD> |
---|
174 | </TR> |
---|
175 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
176 | <TD><CODE><B><A HREF="../../../../edu/stanford/rt/credential/OrderedMap.html#OrderedMap(java.lang.Class, java.lang.Class)">OrderedMap</A></B>(java.lang.Class keyClass, |
---|
177 | java.lang.Class valueClass)</CODE> |
---|
178 | |
---|
179 | <BR> |
---|
180 | Constructor for OrderedMap.</TD> |
---|
181 | </TR> |
---|
182 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
183 | <TD><CODE><B><A HREF="../../../../edu/stanford/rt/credential/OrderedMap.html#OrderedMap(int)">OrderedMap</A></B>(int size)</CODE> |
---|
184 | |
---|
185 | <BR> |
---|
186 | Constructor for OrderedMap.</TD> |
---|
187 | </TR> |
---|
188 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
189 | <TD><CODE><B><A HREF="../../../../edu/stanford/rt/credential/OrderedMap.html#OrderedMap(int, java.lang.Class, java.lang.Class)">OrderedMap</A></B>(int size, |
---|
190 | java.lang.Class keyClass, |
---|
191 | java.lang.Class valueClass)</CODE> |
---|
192 | |
---|
193 | <BR> |
---|
194 | Constructor for OrderedMap.</TD> |
---|
195 | </TR> |
---|
196 | </TABLE> |
---|
197 | |
---|
198 | <!-- ========== METHOD SUMMARY =========== --> |
---|
199 | |
---|
200 | <A NAME="method_summary"><!-- --></A> |
---|
201 | <TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"> |
---|
202 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
---|
203 | <TD COLSPAN=2><FONT SIZE="+2"> |
---|
204 | <B>Method Summary</B></FONT></TD> |
---|
205 | </TR> |
---|
206 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
207 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
208 | <CODE> boolean</CODE></FONT></TD> |
---|
209 | <TD><CODE><B><A HREF="../../../../edu/stanford/rt/credential/OrderedMap.html#constainsKey(java.lang.Object)">constainsKey</A></B>(java.lang.Object key)</CODE> |
---|
210 | |
---|
211 | <BR> |
---|
212 | Method constainsKey.</TD> |
---|
213 | </TR> |
---|
214 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
215 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
216 | <CODE> java.lang.Object</CODE></FONT></TD> |
---|
217 | <TD><CODE><B><A HREF="../../../../edu/stanford/rt/credential/OrderedMap.html#get(java.lang.Object)">get</A></B>(java.lang.Object key)</CODE> |
---|
218 | |
---|
219 | <BR> |
---|
220 | Returns the value for the given key and returns null if there is |
---|
221 | no mapping for the given key .</TD> |
---|
222 | </TR> |
---|
223 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
224 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
225 | <CODE> java.lang.Class</CODE></FONT></TD> |
---|
226 | <TD><CODE><B><A HREF="../../../../edu/stanford/rt/credential/OrderedMap.html#getKeyClass()">getKeyClass</A></B>()</CODE> |
---|
227 | |
---|
228 | <BR> |
---|
229 | Returns the key type.</TD> |
---|
230 | </TR> |
---|
231 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
232 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
233 | <CODE> java.lang.Class</CODE></FONT></TD> |
---|
234 | <TD><CODE><B><A HREF="../../../../edu/stanford/rt/credential/OrderedMap.html#getValueClass()">getValueClass</A></B>()</CODE> |
---|
235 | |
---|
236 | <BR> |
---|
237 | Returns the value type</TD> |
---|
238 | </TR> |
---|
239 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
240 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
241 | <CODE> boolean</CODE></FONT></TD> |
---|
242 | <TD><CODE><B><A HREF="../../../../edu/stanford/rt/credential/OrderedMap.html#isEditable()">isEditable</A></B>()</CODE> |
---|
243 | |
---|
244 | <BR> |
---|
245 | Returns true if the map is editable.</TD> |
---|
246 | </TR> |
---|
247 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
248 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
249 | <CODE> java.util.Iterator</CODE></FONT></TD> |
---|
250 | <TD><CODE><B><A HREF="../../../../edu/stanford/rt/credential/OrderedMap.html#keyIterator()">keyIterator</A></B>()</CODE> |
---|
251 | |
---|
252 | <BR> |
---|
253 | Returns iterator to the list of keys in the map.</TD> |
---|
254 | </TR> |
---|
255 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
256 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
257 | <CODE> java.util.List</CODE></FONT></TD> |
---|
258 | <TD><CODE><B><A HREF="../../../../edu/stanford/rt/credential/OrderedMap.html#keyList()">keyList</A></B>()</CODE> |
---|
259 | |
---|
260 | <BR> |
---|
261 | Returns an unmodifiable view of all the keys.</TD> |
---|
262 | </TR> |
---|
263 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
264 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
265 | <CODE>private void</CODE></FONT></TD> |
---|
266 | <TD><CODE><B><A HREF="../../../../edu/stanford/rt/credential/OrderedMap.html#myPut(java.lang.Object, java.lang.Object)">myPut</A></B>(java.lang.Object key, |
---|
267 | java.lang.Object value)</CODE> |
---|
268 | |
---|
269 | <BR> |
---|
270 | </TD> |
---|
271 | </TR> |
---|
272 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
273 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
274 | <CODE> void</CODE></FONT></TD> |
---|
275 | <TD><CODE><B><A HREF="../../../../edu/stanford/rt/credential/OrderedMap.html#put(java.lang.Object, java.lang.Object)">put</A></B>(java.lang.Object key, |
---|
276 | java.lang.Object value)</CODE> |
---|
277 | |
---|
278 | <BR> |
---|
279 | Method put.</TD> |
---|
280 | </TR> |
---|
281 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
282 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
283 | <CODE> void</CODE></FONT></TD> |
---|
284 | <TD><CODE><B><A HREF="../../../../edu/stanford/rt/credential/OrderedMap.html#putAll(edu.stanford.rt.credential.OrderedMap)">putAll</A></B>(<A HREF="../../../../edu/stanford/rt/credential/OrderedMap.html">OrderedMap</A> map)</CODE> |
---|
285 | |
---|
286 | <BR> |
---|
287 | Copies all the mapping entries to this map, perserving the |
---|
288 | original ordering of the entries.</TD> |
---|
289 | </TR> |
---|
290 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
291 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
292 | <CODE> void</CODE></FONT></TD> |
---|
293 | <TD><CODE><B><A HREF="../../../../edu/stanford/rt/credential/OrderedMap.html#setUneditable()">setUneditable</A></B>()</CODE> |
---|
294 | |
---|
295 | <BR> |
---|
296 | marks this map as uneditable.</TD> |
---|
297 | </TR> |
---|
298 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
299 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
300 | <CODE> int</CODE></FONT></TD> |
---|
301 | <TD><CODE><B><A HREF="../../../../edu/stanford/rt/credential/OrderedMap.html#size()">size</A></B>()</CODE> |
---|
302 | |
---|
303 | <BR> |
---|
304 | Returns the size of this map</TD> |
---|
305 | </TR> |
---|
306 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
307 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
308 | <CODE> java.util.Map</CODE></FONT></TD> |
---|
309 | <TD><CODE><B><A HREF="../../../../edu/stanford/rt/credential/OrderedMap.html#valueMap()">valueMap</A></B>()</CODE> |
---|
310 | |
---|
311 | <BR> |
---|
312 | Returns an unmodifiable view of this map.</TD> |
---|
313 | </TR> |
---|
314 | </TABLE> |
---|
315 | <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A> |
---|
316 | <TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"> |
---|
317 | <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> |
---|
318 | <TD><B>Methods inherited from class java.lang.Object</B></TD> |
---|
319 | </TR> |
---|
320 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
321 | <TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD> |
---|
322 | </TR> |
---|
323 | </TABLE> |
---|
324 | |
---|
325 | <P> |
---|
326 | |
---|
327 | <!-- ============ FIELD DETAIL =========== --> |
---|
328 | |
---|
329 | <A NAME="field_detail"><!-- --></A> |
---|
330 | <TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"> |
---|
331 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
---|
332 | <TD COLSPAN=1><FONT SIZE="+2"> |
---|
333 | <B>Field Detail</B></FONT></TD> |
---|
334 | </TR> |
---|
335 | </TABLE> |
---|
336 | |
---|
337 | <A NAME="keyClass"><!-- --></A><H3> |
---|
338 | keyClass</H3> |
---|
339 | <PRE> |
---|
340 | private java.lang.Class <B>keyClass</B></PRE> |
---|
341 | <DL> |
---|
342 | <DD>key type |
---|
343 | <P> |
---|
344 | <DL> |
---|
345 | </DL> |
---|
346 | </DL> |
---|
347 | <HR> |
---|
348 | |
---|
349 | <A NAME="valueClass"><!-- --></A><H3> |
---|
350 | valueClass</H3> |
---|
351 | <PRE> |
---|
352 | private java.lang.Class <B>valueClass</B></PRE> |
---|
353 | <DL> |
---|
354 | <DD>value type |
---|
355 | <P> |
---|
356 | <DL> |
---|
357 | </DL> |
---|
358 | </DL> |
---|
359 | <HR> |
---|
360 | |
---|
361 | <A NAME="dataMap"><!-- --></A><H3> |
---|
362 | dataMap</H3> |
---|
363 | <PRE> |
---|
364 | private java.util.HashMap <B>dataMap</B></PRE> |
---|
365 | <DL> |
---|
366 | <DD>map for the key-value pairs |
---|
367 | <P> |
---|
368 | <DL> |
---|
369 | </DL> |
---|
370 | </DL> |
---|
371 | <HR> |
---|
372 | |
---|
373 | <A NAME="keyList"><!-- --></A><H3> |
---|
374 | keyList</H3> |
---|
375 | <PRE> |
---|
376 | private java.util.ArrayList <B>keyList</B></PRE> |
---|
377 | <DL> |
---|
378 | <DD>also stores the keys as they are added to the list, |
---|
379 | so that we can remember the ordering of the keys. |
---|
380 | <P> |
---|
381 | <DL> |
---|
382 | </DL> |
---|
383 | </DL> |
---|
384 | <HR> |
---|
385 | |
---|
386 | <A NAME="editable"><!-- --></A><H3> |
---|
387 | editable</H3> |
---|
388 | <PRE> |
---|
389 | private boolean <B>editable</B></PRE> |
---|
390 | <DL> |
---|
391 | <DD>whether this map is editable |
---|
392 | <P> |
---|
393 | <DL> |
---|
394 | </DL> |
---|
395 | </DL> |
---|
396 | <HR> |
---|
397 | |
---|
398 | <A NAME="DEFAULT_SIZE"><!-- --></A><H3> |
---|
399 | DEFAULT_SIZE</H3> |
---|
400 | <PRE> |
---|
401 | private static final int <B>DEFAULT_SIZE</B></PRE> |
---|
402 | <DL> |
---|
403 | <DD>defualt map capacity |
---|
404 | <P> |
---|
405 | <DL> |
---|
406 | <DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#edu.stanford.rt.credential.OrderedMap.DEFAULT_SIZE">Constant Field Values</A></DL> |
---|
407 | </DL> |
---|
408 | |
---|
409 | <!-- ========= CONSTRUCTOR DETAIL ======== --> |
---|
410 | |
---|
411 | <A NAME="constructor_detail"><!-- --></A> |
---|
412 | <TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"> |
---|
413 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
---|
414 | <TD COLSPAN=1><FONT SIZE="+2"> |
---|
415 | <B>Constructor Detail</B></FONT></TD> |
---|
416 | </TR> |
---|
417 | </TABLE> |
---|
418 | |
---|
419 | <A NAME="OrderedMap()"><!-- --></A><H3> |
---|
420 | OrderedMap</H3> |
---|
421 | <PRE> |
---|
422 | public <B>OrderedMap</B>()</PRE> |
---|
423 | <DL> |
---|
424 | <DD>Constructor for OrderedMap. |
---|
425 | |
---|
426 | Constructs a OrderedMap object with size default to 10. |
---|
427 | Both key and value are of Object type. |
---|
428 | <P> |
---|
429 | </DL> |
---|
430 | <HR> |
---|
431 | |
---|
432 | <A NAME="OrderedMap(int)"><!-- --></A><H3> |
---|
433 | OrderedMap</H3> |
---|
434 | <PRE> |
---|
435 | public <B>OrderedMap</B>(int size)</PRE> |
---|
436 | <DL> |
---|
437 | <DD>Constructor for OrderedMap. |
---|
438 | Constructs a OrderedMap object with given size. |
---|
439 | Both key and value are of Object type. |
---|
440 | <P> |
---|
441 | </DL> |
---|
442 | <HR> |
---|
443 | |
---|
444 | <A NAME="OrderedMap(java.lang.Class, java.lang.Class)"><!-- --></A><H3> |
---|
445 | OrderedMap</H3> |
---|
446 | <PRE> |
---|
447 | public <B>OrderedMap</B>(java.lang.Class keyClass, |
---|
448 | java.lang.Class valueClass)</PRE> |
---|
449 | <DL> |
---|
450 | <DD>Constructor for OrderedMap. |
---|
451 | Constructs a OrderedMap object with size default to 10. |
---|
452 | The key and value type are specified by the given keyClass and |
---|
453 | valueClass, respectively. |
---|
454 | <P> |
---|
455 | </DL> |
---|
456 | <HR> |
---|
457 | |
---|
458 | <A NAME="OrderedMap(int, java.lang.Class, java.lang.Class)"><!-- --></A><H3> |
---|
459 | OrderedMap</H3> |
---|
460 | <PRE> |
---|
461 | public <B>OrderedMap</B>(int size, |
---|
462 | java.lang.Class keyClass, |
---|
463 | java.lang.Class valueClass)</PRE> |
---|
464 | <DL> |
---|
465 | <DD>Constructor for OrderedMap. |
---|
466 | Constructs a OrderedMap object with given size. |
---|
467 | The key and value type are specified by the given keyClass and |
---|
468 | valueClass, respectively. |
---|
469 | <P> |
---|
470 | </DL> |
---|
471 | |
---|
472 | <!-- ============ METHOD DETAIL ========== --> |
---|
473 | |
---|
474 | <A NAME="method_detail"><!-- --></A> |
---|
475 | <TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"> |
---|
476 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
---|
477 | <TD COLSPAN=1><FONT SIZE="+2"> |
---|
478 | <B>Method Detail</B></FONT></TD> |
---|
479 | </TR> |
---|
480 | </TABLE> |
---|
481 | |
---|
482 | <A NAME="constainsKey(java.lang.Object)"><!-- --></A><H3> |
---|
483 | constainsKey</H3> |
---|
484 | <PRE> |
---|
485 | public boolean <B>constainsKey</B>(java.lang.Object key)</PRE> |
---|
486 | <DL> |
---|
487 | <DD>Method constainsKey. |
---|
488 | Returns true if there is a mapping for the given key. |
---|
489 | <P> |
---|
490 | <DD><DL> |
---|
491 | <DT><B>Parameters:</B><DD><CODE>key</CODE> - |
---|
492 | <DT><B>Returns:</B><DD>boolean</DL> |
---|
493 | </DD> |
---|
494 | </DL> |
---|
495 | <HR> |
---|
496 | |
---|
497 | <A NAME="put(java.lang.Object, java.lang.Object)"><!-- --></A><H3> |
---|
498 | put</H3> |
---|
499 | <PRE> |
---|
500 | public void <B>put</B>(java.lang.Object key, |
---|
501 | java.lang.Object value) |
---|
502 | throws <A HREF="../../../../edu/stanford/rt/credential/DomainSpecException.html">DomainSpecException</A></PRE> |
---|
503 | <DL> |
---|
504 | <DD>Method put. |
---|
505 | Add a new key-value mapping entry to the map. |
---|
506 | Exception is thrown if the map is not editable, the key is null, |
---|
507 | or the given key or value's type does not match the specified |
---|
508 | key type or value type. Exception will also be thrown if trying |
---|
509 | to add duplicated key-value pair. |
---|
510 | <P> |
---|
511 | <DD><DL> |
---|
512 | <DT><B>Parameters:</B><DD><CODE>key</CODE> - <DD><CODE>value</CODE> - |
---|
513 | <DT><B>Throws:</B> |
---|
514 | <DD><CODE><A HREF="../../../../edu/stanford/rt/credential/DomainSpecException.html">DomainSpecException</A></CODE></DL> |
---|
515 | </DD> |
---|
516 | </DL> |
---|
517 | <HR> |
---|
518 | |
---|
519 | <A NAME="myPut(java.lang.Object, java.lang.Object)"><!-- --></A><H3> |
---|
520 | myPut</H3> |
---|
521 | <PRE> |
---|
522 | private void <B>myPut</B>(java.lang.Object key, |
---|
523 | java.lang.Object value) |
---|
524 | throws <A HREF="../../../../edu/stanford/rt/credential/DomainSpecException.html">DomainSpecException</A></PRE> |
---|
525 | <DL> |
---|
526 | <DD><DL> |
---|
527 | |
---|
528 | <DD><CODE><A HREF="../../../../edu/stanford/rt/credential/DomainSpecException.html">DomainSpecException</A></CODE></DL> |
---|
529 | </DD> |
---|
530 | </DL> |
---|
531 | <HR> |
---|
532 | |
---|
533 | <A NAME="putAll(edu.stanford.rt.credential.OrderedMap)"><!-- --></A><H3> |
---|
534 | putAll</H3> |
---|
535 | <PRE> |
---|
536 | public void <B>putAll</B>(<A HREF="../../../../edu/stanford/rt/credential/OrderedMap.html">OrderedMap</A> map) |
---|
537 | throws <A HREF="../../../../edu/stanford/rt/credential/DomainSpecException.html">DomainSpecException</A></PRE> |
---|
538 | <DL> |
---|
539 | <DD>Copies all the mapping entries to this map, perserving the |
---|
540 | original ordering of the entries. |
---|
541 | |
---|
542 | Exception is thrown when the key type or value type of the given |
---|
543 | map does not match that of this map, or when duplicated entries |
---|
544 | are detected. |
---|
545 | <P> |
---|
546 | <DD><DL> |
---|
547 | |
---|
548 | <DD><CODE><A HREF="../../../../edu/stanford/rt/credential/DomainSpecException.html">DomainSpecException</A></CODE></DL> |
---|
549 | </DD> |
---|
550 | </DL> |
---|
551 | <HR> |
---|
552 | |
---|
553 | <A NAME="setUneditable()"><!-- --></A><H3> |
---|
554 | setUneditable</H3> |
---|
555 | <PRE> |
---|
556 | public void <B>setUneditable</B>()</PRE> |
---|
557 | <DL> |
---|
558 | <DD>marks this map as uneditable. |
---|
559 | <P> |
---|
560 | <DD><DL> |
---|
561 | </DL> |
---|
562 | </DD> |
---|
563 | </DL> |
---|
564 | <HR> |
---|
565 | |
---|
566 | <A NAME="isEditable()"><!-- --></A><H3> |
---|
567 | isEditable</H3> |
---|
568 | <PRE> |
---|
569 | public boolean <B>isEditable</B>()</PRE> |
---|
570 | <DL> |
---|
571 | <DD>Returns true if the map is editable. |
---|
572 | <P> |
---|
573 | <DD><DL> |
---|
574 | </DL> |
---|
575 | </DD> |
---|
576 | </DL> |
---|
577 | <HR> |
---|
578 | |
---|
579 | <A NAME="size()"><!-- --></A><H3> |
---|
580 | size</H3> |
---|
581 | <PRE> |
---|
582 | public int <B>size</B>()</PRE> |
---|
583 | <DL> |
---|
584 | <DD>Returns the size of this map |
---|
585 | <P> |
---|
586 | <DD><DL> |
---|
587 | </DL> |
---|
588 | </DD> |
---|
589 | </DL> |
---|
590 | <HR> |
---|
591 | |
---|
592 | <A NAME="keyIterator()"><!-- --></A><H3> |
---|
593 | keyIterator</H3> |
---|
594 | <PRE> |
---|
595 | public java.util.Iterator <B>keyIterator</B>()</PRE> |
---|
596 | <DL> |
---|
597 | <DD>Returns iterator to the list of keys in the map. |
---|
598 | <P> |
---|
599 | <DD><DL> |
---|
600 | </DL> |
---|
601 | </DD> |
---|
602 | </DL> |
---|
603 | <HR> |
---|
604 | |
---|
605 | <A NAME="get(java.lang.Object)"><!-- --></A><H3> |
---|
606 | get</H3> |
---|
607 | <PRE> |
---|
608 | public java.lang.Object <B>get</B>(java.lang.Object key) |
---|
609 | throws <A HREF="../../../../edu/stanford/rt/credential/DomainSpecException.html">DomainSpecException</A></PRE> |
---|
610 | <DL> |
---|
611 | <DD>Returns the value for the given key and returns null if there is |
---|
612 | no mapping for the given key . |
---|
613 | |
---|
614 | Exception is thrown when the type of given key does not match the |
---|
615 | specified key type of this map. |
---|
616 | <P> |
---|
617 | <DD><DL> |
---|
618 | |
---|
619 | <DD><CODE><A HREF="../../../../edu/stanford/rt/credential/DomainSpecException.html">DomainSpecException</A></CODE></DL> |
---|
620 | </DD> |
---|
621 | </DL> |
---|
622 | <HR> |
---|
623 | |
---|
624 | <A NAME="keyList()"><!-- --></A><H3> |
---|
625 | keyList</H3> |
---|
626 | <PRE> |
---|
627 | public java.util.List <B>keyList</B>()</PRE> |
---|
628 | <DL> |
---|
629 | <DD>Returns an unmodifiable view of all the keys. |
---|
630 | <P> |
---|
631 | <DD><DL> |
---|
632 | </DL> |
---|
633 | </DD> |
---|
634 | </DL> |
---|
635 | <HR> |
---|
636 | |
---|
637 | <A NAME="valueMap()"><!-- --></A><H3> |
---|
638 | valueMap</H3> |
---|
639 | <PRE> |
---|
640 | public java.util.Map <B>valueMap</B>()</PRE> |
---|
641 | <DL> |
---|
642 | <DD>Returns an unmodifiable view of this map. |
---|
643 | <P> |
---|
644 | <DD><DL> |
---|
645 | </DL> |
---|
646 | </DD> |
---|
647 | </DL> |
---|
648 | <HR> |
---|
649 | |
---|
650 | <A NAME="getKeyClass()"><!-- --></A><H3> |
---|
651 | getKeyClass</H3> |
---|
652 | <PRE> |
---|
653 | public java.lang.Class <B>getKeyClass</B>()</PRE> |
---|
654 | <DL> |
---|
655 | <DD>Returns the key type. |
---|
656 | <P> |
---|
657 | <DD><DL> |
---|
658 | </DL> |
---|
659 | </DD> |
---|
660 | </DL> |
---|
661 | <HR> |
---|
662 | |
---|
663 | <A NAME="getValueClass()"><!-- --></A><H3> |
---|
664 | getValueClass</H3> |
---|
665 | <PRE> |
---|
666 | public java.lang.Class <B>getValueClass</B>()</PRE> |
---|
667 | <DL> |
---|
668 | <DD>Returns the value type |
---|
669 | <P> |
---|
670 | <DD><DL> |
---|
671 | </DL> |
---|
672 | </DD> |
---|
673 | </DL> |
---|
674 | <!-- ========= END OF CLASS DATA ========= --> |
---|
675 | <HR> |
---|
676 | |
---|
677 | <!-- ========== START OF NAVBAR ========== --> |
---|
678 | <A NAME="navbar_bottom"><!-- --></A> |
---|
679 | <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0"> |
---|
680 | <TR> |
---|
681 | <TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> |
---|
682 | <A NAME="navbar_bottom_firstrow"><!-- --></A> |
---|
683 | <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3"> |
---|
684 | <TR ALIGN="center" VALIGN="top"> |
---|
685 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> |
---|
686 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> |
---|
687 | <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> |
---|
688 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/OrderedMap.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> |
---|
689 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> |
---|
690 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> |
---|
691 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> |
---|
692 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> |
---|
693 | </TR> |
---|
694 | </TABLE> |
---|
695 | </TD> |
---|
696 | <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> |
---|
697 | </EM> |
---|
698 | </TD> |
---|
699 | </TR> |
---|
700 | |
---|
701 | <TR> |
---|
702 | <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
---|
703 | <A HREF="../../../../edu/stanford/rt/credential/LinkedRole.html"><B>PREV CLASS</B></A> |
---|
704 | <A HREF="../../../../edu/stanford/rt/credential/Principal.html"><B>NEXT CLASS</B></A></FONT></TD> |
---|
705 | <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
---|
706 | <A HREF="../../../../index.html" TARGET="_top"><B>FRAMES</B></A> |
---|
707 | <A HREF="OrderedMap.html" TARGET="_top"><B>NO FRAMES</B></A> |
---|
708 | |
---|
709 | <SCRIPT> |
---|
710 | <!-- |
---|
711 | if(window==top) { |
---|
712 | document.writeln('<A HREF="../../../../allclasses-noframe.html" TARGET=""><B>All Classes</B></A>'); |
---|
713 | } |
---|
714 | //--> |
---|
715 | </SCRIPT> |
---|
716 | <NOSCRIPT> |
---|
717 | <A HREF="../../../../allclasses-noframe.html" TARGET=""><B>All Classes</B></A> |
---|
718 | </NOSCRIPT> |
---|
719 | </FONT></TD> |
---|
720 | </TR> |
---|
721 | <TR> |
---|
722 | <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
---|
723 | SUMMARY: NESTED | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> |
---|
724 | <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
---|
725 | DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD> |
---|
726 | </TR> |
---|
727 | </TABLE> |
---|
728 | <!-- =========== END OF NAVBAR =========== --> |
---|
729 | |
---|
730 | <HR> |
---|
731 | |
---|
732 | </BODY> |
---|
733 | </HTML> |
---|