?? coffee.html
字號:
<TD><CODE><A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/Object.html#clone()" title="class or interface in java.lang">clone</A>, <A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/Object.html#finalize()" title="class or interface in java.lang">finalize</A>, <A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/Object.html#getClass()" title="class or interface in java.lang">getClass</A>, <A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/Object.html#hashCode()" title="class or interface in java.lang">hashCode</A>, <A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/Object.html#notify()" title="class or interface in java.lang">notify</A>, <A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/Object.html#notifyAll()" title="class or interface in java.lang">notifyAll</A>, <A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/Object.html#wait()" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/j2se/1.5/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.5/docs/api/java/lang/Object.html#wait(long, int)" title="class or interface in java.lang">wait</A></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="Coffee(java.lang.String, java.lang.String, double, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String)"><!-- --></A><H3>
Coffee</H3>
<PRE>
public <B>Coffee</B>(<A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> initialCode,
<A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> initialDescription,
double initialPrice,
<A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> initialOrigin,
<A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> initialRoast,
<A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> initialFlavor,
<A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> initialAroma,
<A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> initialAcidity,
<A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> initialBody)</PRE>
<DL>
<DD>Constructs a <code>Coffee</code> object.
<P>
<DL>
<DT><B>Parameters:</B><DD><CODE>initialCode</CODE> - the code of the product.<DD><CODE>initialDescription</CODE> - a short description of the product.<DD><CODE>initialPrice</CODE> - the price of the product.<DD><CODE>initialOrigin</CODE> - the origin of coffee.<DD><CODE>initialRoast</CODE> - the kind of roast of the coffee.<DD><CODE>initialFlavor</CODE> - the flavor of the coffee.<DD><CODE>initialAroma</CODE> - the aroma of the coffee.<DD><CODE>initialAcidity</CODE> - the acidity of the coffee.<DD><CODE>initialBody</CODE> - the body of the coffee.</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="getOrigin()"><!-- --></A><H3>
getOrigin</H3>
<PRE>
public <A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>getOrigin</B>()</PRE>
<DL>
<DD>Returns the origin of this coffee.
<P>
<DD><DL>
<DT><B>Returns:</B><DD>the origin of this coffee.</DL>
</DD>
</DL>
<HR>
<A NAME="getRoast()"><!-- --></A><H3>
getRoast</H3>
<PRE>
public <A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>getRoast</B>()</PRE>
<DL>
<DD>Returns the roast of this coffee.
<P>
<DD><DL>
<DT><B>Returns:</B><DD>the roast of this coffee.</DL>
</DD>
</DL>
<HR>
<A NAME="getFlavor()"><!-- --></A><H3>
getFlavor</H3>
<PRE>
public <A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>getFlavor</B>()</PRE>
<DL>
<DD>Returns the flavor of this coffee.
<P>
<DD><DL>
<DT><B>Returns:</B><DD>the flavor of this coffee.</DL>
</DD>
</DL>
<HR>
<A NAME="getAroma()"><!-- --></A><H3>
getAroma</H3>
<PRE>
public <A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>getAroma</B>()</PRE>
<DL>
<DD>Returns the aroma of this coffee.
<P>
<DD><DL>
<DT><B>Returns:</B><DD>the aroma of this coffee.</DL>
</DD>
</DL>
<HR>
<A NAME="getAcidity()"><!-- --></A><H3>
getAcidity</H3>
<PRE>
public <A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>getAcidity</B>()</PRE>
<DL>
<DD>Returns the acidity of this coffee.
<P>
<DD><DL>
<DT><B>Returns:</B><DD>the acidity of this coffee.</DL>
</DD>
</DL>
<HR>
<A NAME="getBody()"><!-- --></A><H3>
getBody</H3>
<PRE>
public <A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>getBody</B>()</PRE>
<DL>
<DD>Returns the body of this coffee.
<P>
<DD><DL>
<DT><B>Returns:</B><DD>the body of this coffee.</DL>
</DD>
</DL>
<HR>
<A NAME="toString()"><!-- --></A><H3>
toString</H3>
<PRE>
public <A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>toString</B>()</PRE>
<DL>
<DD>Returns the string representation of this coffee.
<P>
<DD><DL>
<DT><B>Overrides:</B><DD><CODE><A HREF="Product.html#toString()">toString</A></CODE> in class <CODE><A HREF="Product.html" title="class in <Unnamed>">Product</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>the string representation of this coffee.</DL>
</DD>
</DL>
<HR>
<A NAME="getDataFields()"><!-- --></A><H3>
getDataFields</H3>
<PRE>
public <A HREF="http://java.sun.com/j2se/1.5/docs/api/java/util/ArrayList.html" title="class or interface in java.util">ArrayList</A><<A HREF="DataField.html" title="class in <Unnamed>">DataField</A>> <B>getDataFields</B>()</PRE>
<DL>
<DD>Obtains an <A HREF="http://java.sun.com/j2se/1.5/docs/api/java/util/ArrayList.html" title="class or interface in java.util"><CODE>ArrayList</CODE></A> of <A HREF="DataField.html" title="class in <Unnamed>"><CODE>DataField</CODE></A> with the names and values for each attribute of this product. <p> For class <code>Coffee</code>, this method returns nine data fields with the names: "Code", "Description", "Price", "Origin", "Roast", "Flavor", "Aroma", "Acidity", and "Body". </p>
<P>
<DD><DL>
<DT><B>Overrides:</B><DD><CODE><A HREF="Product.html#getDataFields()">getDataFields</A></CODE> in class <CODE><A HREF="Product.html" title="class in <Unnamed>">Product</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>an <A HREF="http://java.sun.com/j2se/1.5/docs/api/java/util/ArrayList.html" title="class or interface in java.util"><CODE>ArrayList</CODE></A> of <A HREF="DataField.html" title="class in <Unnamed>"><CODE>DataField</CODE></A> with the information of this object.</DL>
</DD>
</DL>
<!-- ========= END OF CLASS DATA ========= -->
<HR>
<HR>
</BODY>
</HTML>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -