📄 listtype.html
字号:
<TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/archive/crawler/settings/ListType.html#retainAll(java.util.Collection)">retainAll</A></B>(java.util.Collection c)</CODE><BR> </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> java.lang.Object</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/archive/crawler/settings/ListType.html#set(int, java.lang.Object)">set</A></B>(int index, java.lang.Object element)</CODE><BR> Replaces the element at the specified position in this list with the specified element.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/archive/crawler/settings/ListType.html#size()">size</A></B>()</CODE><BR> Get the number of elements in this list.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> java.util.List</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/archive/crawler/settings/ListType.html#subList(int, int)">subList</A></B>(int fromIndex, int toIndex)</CODE><BR> </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> java.lang.Object[]</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/archive/crawler/settings/ListType.html#toArray()">toArray</A></B>()</CODE><BR> </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> java.lang.Object[]</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/archive/crawler/settings/ListType.html#toArray(java.lang.Object[])">toArray</A></B>(java.lang.Object[] a)</CODE><BR> </TD></TR></TABLE> <A NAME="methods_inherited_from_class_org.archive.crawler.settings.Type"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TH ALIGN="left"><B>Methods inherited from class org.archive.crawler.settings.<A HREF="../../../../org/archive/crawler/settings/Type.html" title="class in org.archive.crawler.settings">Type</A></B></TH></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../../org/archive/crawler/settings/Type.html#addConstraint(org.archive.crawler.settings.Constraint)">addConstraint</A>, <A HREF="../../../../org/archive/crawler/settings/Type.html#equals(java.lang.Object)">equals</A>, <A HREF="../../../../org/archive/crawler/settings/Type.html#getConstraints()">getConstraints</A>, <A HREF="../../../../org/archive/crawler/settings/Type.html#getLegalValueType()">getLegalValueType</A>, <A HREF="../../../../org/archive/crawler/settings/Type.html#isExpertSetting()">isExpertSetting</A>, <A HREF="../../../../org/archive/crawler/settings/Type.html#isOverrideable()">isOverrideable</A>, <A HREF="../../../../org/archive/crawler/settings/Type.html#isTransient()">isTransient</A>, <A HREF="../../../../org/archive/crawler/settings/Type.html#setExpertSetting(boolean)">setExpertSetting</A>, <A HREF="../../../../org/archive/crawler/settings/Type.html#setLegalValueType(java.lang.Class)">setLegalValueType</A>, <A HREF="../../../../org/archive/crawler/settings/Type.html#setOverrideable(boolean)">setOverrideable</A>, <A HREF="../../../../org/archive/crawler/settings/Type.html#setTransient(boolean)">setTransient</A></CODE></TD></TR></TABLE> <A NAME="methods_inherited_from_class_javax.management.Attribute"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TH ALIGN="left"><B>Methods inherited from class javax.management.Attribute</B></TH></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE>getName</CODE></TD></TR></TABLE> <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD></TR></TABLE> <A NAME="methods_inherited_from_class_java.util.List"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TH ALIGN="left"><B>Methods inherited from interface java.util.List</B></TH></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE>equals, hashCode</CODE></TD></TR></TABLE> <P><!-- ========= CONSTRUCTOR DETAIL ======== --><A NAME="constructor_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"><B>Constructor Detail</B></FONT></TH></TR></TABLE><A NAME="ListType(java.lang.String, java.lang.String)"><!-- --></A><H3>ListType</H3><PRE>public <B>ListType</B>(java.lang.String name, java.lang.String description)</PRE><DL><DD>Constructs a new ListType.<P><DL><DT><B>Parameters:</B><DD><CODE>name</CODE> - the name of the list<DD><CODE>description</CODE> - the description of the list</DL></DL><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"><B>Method Detail</B></FONT></TH></TR></TABLE><A NAME="add(java.lang.Object)"><!-- --></A><H3>add</H3><PRE>public boolean <B>add</B>(java.lang.Object element)</PRE><DL><DD>Appends the specified element to the end of this list.<P><DD><DL><DT><B>Specified by:</B><DD><CODE>add</CODE> in interface <CODE>java.util.Collection</CODE><DT><B>Specified by:</B><DD><CODE>add</CODE> in interface <CODE>java.util.List</CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>element</CODE> - element to be appended to this list.<DT><B>Returns:</B><DD>true if this collection changed as a result of the call (as per the Collections.add contract).<DT><B>Throws:</B><DD><CODE>java.lang.ClassCastException</CODE> - is thrown if the element was of wrong type and could not be converted.</DL></DD></DL><HR><A NAME="add(int, java.lang.Object)"><!-- --></A><H3>add</H3><PRE>public void <B>add</B>(int index, java.lang.Object element)</PRE><DL><DD>Inserts the specified element at the specified position in this list. Shifts the element currently at that position (if any) and any subsequent elements to the right (adds one to their indices).<P><DD><DL><DT><B>Specified by:</B><DD><CODE>add</CODE> in interface <CODE>java.util.List</CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>index</CODE> - index at which the specified element is to be inserted.<DD><CODE>element</CODE> - element to be inserted.<DT><B>Throws:</B><DD><CODE>java.lang.ClassCastException</CODE> - is thrown if the element was of wrong type and could not be converted.</DL></DD></DL><HR><A NAME="addAll(org.archive.crawler.settings.ListType)"><!-- --></A><H3>addAll</H3><PRE>protected void <B>addAll</B>(<A HREF="../../../../org/archive/crawler/settings/ListType.html" title="class in org.archive.crawler.settings">ListType</A> l)</PRE><DL><DD>Appends all of the elements in the specified list to the end of this list, in the order that they are returned by the specified lists's iterator. The behavior of this operation is unspecified if the specified collection is modified while the operation is in progress. This method is a helper method for subclasses.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>l</CODE> - list whose elements are to be added to this list.</DL></DD></DL><HR><A NAME="set(int, java.lang.Object)"><!-- --></A><H3>set</H3><PRE>public java.lang.Object <B>set</B>(int index, java.lang.Object element)</PRE><DL><DD>Replaces the element at the specified position in this list with the specified element.<P><DD><DL><DT><B>Specified by:</B><DD><CODE>set</CODE> in interface <CODE>java.util.List</CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>index</CODE> - index at which the specified element is to be inserted.<DD><CODE>element</CODE> - element to be inserted.<DT><B>Returns:</B><DD>the element previously at the specified position.<DT><B>Throws:</B><DD><CODE>java.lang.ClassCastException</CODE> - is thrown if the element was of wrong type and could not be converted.</DL></DD></DL><HR><A NAME="iterator()"><!-- --></A><H3>iterator</H3><PRE>public java.util.Iterator <B>iterator</B>()</PRE><DL><DD>Returns an iterator over the elements in this list in proper sequence.<P><DD><DL><DT><B>Specified by:</B><DD><CODE>iterator</CODE> in interface <CODE>java.lang.Iterable</CODE><DT><B>Specified by:</B><DD><CODE>iterator</CODE> in interface <CODE>java.util.Collection</CODE><DT><B>Specified by:</B><DD><CODE>iterator</CODE> in interface <CODE>java.util.List</CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>an iterator over the elements in this list.</DL></DD></DL><HR><A NAME="size()"><!-- --></A><H3>size</H3><PRE>public int <B>size</B>()</PRE><DL><DD>Get the number of elements in this list.<P><DD><DL><DT><B>Specified by:</B><DD><CODE>size</CODE> in interface <CODE>java.util.Collection</CODE><DT><B>Specified by:</B><DD><CODE>size</CODE> in interface <CODE>java.util.List</CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>number of elements.</DL></DD></DL><HR><A NAME="isEmpty()"><!-- --></A><H3>isEmpty</H3><PRE>public boolean <B>isEmpty</B>()</PRE><DL><DD>Returns true if this list contains no elements.<P><DD><DL><DT><B>Specified by:</B><DD><CODE>isEmpty</CODE> in interface <CODE>java.util.Collection</CODE><DT><B>Specified by:</B><DD><CODE>isEmpty</CODE> in interface <CODE>java.util.List</CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>true if this list contains no elements.</DL></DD></DL><HR><A NAME="checkType(java.lang.Object)"><!-- --></A><H3>checkType</H3><PRE>public abstract java.lang.Object <B>checkType</B>(java.lang.Object element) throws java.lang.ClassCastException</PRE><DL><DD>Check if element is of right type for this list. If this method gets a String, it should try to convert it to the right element type before throwing an exception.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>element</CODE> - element to check.<DT><B>Returns:</B><DD>element of the right type.<DT><B>Throws:</B><DD><CODE>java.lang.ClassCastException</CODE> - is thrown if the element was of wrong type and could not be converted.</DL></DD></DL><HR><A NAME="getDefaultValue()"><!-- --></A><H3>getDefaultValue</H3><PRE>public java.lang.Object <B>getDefaultValue</B>()</PRE><DL><DD><B>Description copied from class: <CODE><A HREF="../../../../org/archive/crawler/settings/Type.html#getDefaultValue()">Type</A></CODE></B></DD><DD>The default value for this type<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/archive/crawler/settings/Type.html#getDefaultValue()">getDefaultValue</A></CODE> in class <CODE><A HREF="../../../../org/archive/crawler/settings/Type.html" title="class in org.archive.crawler.settings">Type</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>this type's default value</DL></DD></DL><HR><A NAME="getDescription()"><!-- --></A><H3>getDescription</H3><PRE>public java.lang.String <B>getDescription</B>()</PRE><DL><DD><B>Description copied from class: <CODE><A HREF="../../../../org/archive/crawler/settings/Type.html#getDescription()">Type</A></CODE></B></DD><DD>Get the description of this type The description should be suitable for showing in a user interface.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/archive/crawler/settings/Type.html#getDescription()">getDescription</A></CODE> in class <CODE><A HREF="../../../../org/archive/crawler/settings/Type.html" title="class in org.archive.crawler.settings">Type</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>this type's description</DL></DD></DL><HR><A NAME="clear()"><!-- --></A><H3>clear</H3><PRE>public void <B>clear</B>()</PRE><DL><DD>Removes all elements from this list.<P><DD><DL><DT><B>Specified by:</B><DD><CODE>clear</CODE> in interface <CODE>java.util.Collection</CODE><DT><B>Specified by:</B><DD><CODE>clear</CODE> in interface <CODE>java.util.List</CODE></DL></DD><DD><DL>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -