abstractcalcresult.html

来自「Geotools是一个开源的Java GIS工具包,可利用它来开发符合标准的地理」· HTML 代码 · 共 691 行 · 第 1/3 页

HTML
691 行
字号
<TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/geotools/feature/visitor/AbstractCalcResult.html#toInt()">toInt</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Access getValue as an int</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/List.html" title="class or interface in java.util">List</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/geotools/feature/visitor/AbstractCalcResult.html#toList()">toList</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Access getValue as a list</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;long</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/geotools/feature/visitor/AbstractCalcResult.html#toLong()">toLong</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Access getValue as a long</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/Map.html" title="class or interface in java.util">Map</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/geotools/feature/visitor/AbstractCalcResult.html#toMap()">toMap</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Access getValue as a map</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="http://www.jump-project.org/docs/jts/1.7/api/com/vividsolutions/jts/geom/Point.html" title="class or interface in com.vividsolutions.jts.geom">Point</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/geotools/feature/visitor/AbstractCalcResult.html#toPoint()">toPoint</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Access getValue as a point</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/Set.html" title="class or interface in java.util">Set</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/geotools/feature/visitor/AbstractCalcResult.html#toSet()">toSet</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Access getValue as a set</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/geotools/feature/visitor/AbstractCalcResult.html#toString()">toString</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Access getValue as a string</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>[]</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/geotools/feature/visitor/AbstractCalcResult.html#toStringArray()">toStringArray</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD></TR></TABLE>&nbsp;<A NAME="methods_inherited_from_class_Object"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from class <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#clone()" title="class or interface in java.lang">clone</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#equals(java.lang.Object)" title="class or interface in java.lang">equals</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#finalize()" title="class or interface in java.lang">finalize</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#getClass()" title="class or interface in java.lang">getClass</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#hashCode()" title="class or interface in java.lang">hashCode</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#notify()" title="class or interface in java.lang">notify</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#notifyAll()" title="class or interface in java.lang">notifyAll</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#wait()" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#wait(long)" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#wait(long, int)" title="class or interface in java.lang">wait</A></CODE></TD></TR></TABLE>&nbsp;<P><!-- ============ FIELD DETAIL =========== --><!-- ========= CONSTRUCTOR DETAIL ======== --><A NAME="constructor_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Constructor Detail</B></FONT></TD></TR></TABLE><A NAME="AbstractCalcResult()"><!-- --></A><H3>AbstractCalcResult</H3><PRE>public <B>AbstractCalcResult</B>()</PRE><DL></DL><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Method Detail</B></FONT></TD></TR></TABLE><A NAME="isCompatible(org.geotools.feature.visitor.CalcResult)"><!-- --></A><H3>isCompatible</H3><PRE>public boolean <B>isCompatible</B>(<A HREF="../../../../org/geotools/feature/visitor/CalcResult.html" title="interface in org.geotools.feature.visitor">CalcResult</A>&nbsp;targetResults)</PRE><DL><DD><B>Description copied from interface: <CODE><A HREF="../../../../org/geotools/feature/visitor/CalcResult.html" title="interface in org.geotools.feature.visitor">CalcResult</A></CODE></B></DD><DD>Returns true if the target results is a compatible type with the current results, with compatible meaning that the two results may be merged.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/geotools/feature/visitor/CalcResult.html#isCompatible(org.geotools.feature.visitor.CalcResult)">isCompatible</A></CODE> in interface <CODE><A HREF="../../../../org/geotools/feature/visitor/CalcResult.html" title="interface in org.geotools.feature.visitor">CalcResult</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>targetResults</CODE> - the second CalcResult Object<DT><B>Returns:</B><DD>true if the targetResults can be merged with the current results</DL></DD></DL><HR><A NAME="merge(org.geotools.feature.visitor.CalcResult)"><!-- --></A><H3>merge</H3><PRE>public <A HREF="../../../../org/geotools/feature/visitor/CalcResult.html" title="interface in org.geotools.feature.visitor">CalcResult</A> <B>merge</B>(<A HREF="../../../../org/geotools/feature/visitor/CalcResult.html" title="interface in org.geotools.feature.visitor">CalcResult</A>&nbsp;resultsToAdd)</PRE><DL><DD><B>Description copied from interface: <CODE><A HREF="../../../../org/geotools/feature/visitor/CalcResult.html" title="interface in org.geotools.feature.visitor">CalcResult</A></CODE></B></DD><DD>Returns the merged results of two CalcResult. The way in which the results are merged is dependent on the type of the results added. A new instance is created containing the merged results.  <p> For example: merging two min functions would return the smaller of the two values; merging a count and a sum would return an average. </p><P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/geotools/feature/visitor/CalcResult.html#merge(org.geotools.feature.visitor.CalcResult)">merge</A></CODE> in interface <CODE><A HREF="../../../../org/geotools/feature/visitor/CalcResult.html" title="interface in org.geotools.feature.visitor">CalcResult</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>resultsToAdd</CODE> - <DT><B>Returns:</B><DD>the merged results</DL></DD></DL><HR><A NAME="getValue()"><!-- --></A><H3>getValue</H3><PRE>public <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A> <B>getValue</B>()</PRE><DL><DD><B>Description copied from interface: <CODE><A HREF="../../../../org/geotools/feature/visitor/CalcResult.html" title="interface in org.geotools.feature.visitor">CalcResult</A></CODE></B></DD><DD>Actual answer<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/geotools/feature/visitor/CalcResult.html#getValue()">getValue</A></CODE> in interface <CODE><A HREF="../../../../org/geotools/feature/visitor/CalcResult.html" title="interface in org.geotools.feature.visitor">CalcResult</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>the calculation result as a generic object</DL></DD></DL><HR><A NAME="toInt()"><!-- --></A><H3>toInt</H3><PRE>public int <B>toInt</B>()</PRE><DL><DD><B>Description copied from interface: <CODE><A HREF="../../../../org/geotools/feature/visitor/CalcResult.html" title="interface in org.geotools.feature.visitor">CalcResult</A></CODE></B></DD><DD>Access getValue as an int<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/geotools/feature/visitor/CalcResult.html#toInt()">toInt</A></CODE> in interface <CODE><A HREF="../../../../org/geotools/feature/visitor/CalcResult.html" title="interface in org.geotools.feature.visitor">CalcResult</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>the calculation result as a int (or 0 if not applicable)</DL></DD></DL><HR><A NAME="toDouble()"><!-- --></A><H3>toDouble</H3><PRE>public double <B>toDouble</B>()</PRE><DL><DD><B>Description copied from interface: <CODE><A HREF="../../../../org/geotools/feature/visitor/CalcResult.html" title="interface in org.geotools.feature.visitor">CalcResult</A></CODE></B></DD><DD>Access getValue as a double<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/geotools/feature/visitor/CalcResult.html#toDouble()">toDouble</A></CODE> in interface <CODE><A HREF="../../../../org/geotools/feature/visitor/CalcResult.html" title="interface in org.geotools.feature.visitor">CalcResult</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>the calculation result as a double (or 0 if not applicable)</DL></DD></DL><HR><A NAME="toLong()"><!-- --></A><H3>toLong</H3><PRE>public long <B>toLong</B>()</PRE><DL><DD><B>Description copied from interface: <CODE><A HREF="../../../../org/geotools/feature/visitor/CalcResult.html" title="interface in org.geotools.feature.visitor">CalcResult</A></CODE></B></DD><DD>Access getValue as a long<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/geotools/feature/visitor/CalcResult.html#toLong()">toLong</A></CODE> in interface <CODE><A HREF="../../../../org/geotools/feature/visitor/CalcResult.html" title="interface in org.geotools.feature.visitor">CalcResult</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>the calculation result as a long (or 0 if not applicable)</DL></DD></DL><HR><A NAME="toFloat()"><!-- --></A><H3>toFloat</H3><PRE>public float <B>toFloat</B>()</PRE><DL><DD><B>Description copied from interface: <CODE><A HREF="../../../../org/geotools/feature/visitor/CalcResult.html" title="interface in org.geotools.feature.visitor">CalcResult</A></CODE></B></DD><DD>Access getValue as a float<P>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?