【文件属性】:
文件名称:java8集合源码-guice-doc:guice文档
文件大小:59KB
文件格式:ZIP
更新时间:2021-06-04 17:45:19
系统开源
java8集合源码动机.md
动机
将所有内容连接在一起是应用程序开发的乏味部分。
有几种方法可以将数据、服务和表示类相互连接起来。
为了对比这些方法,我们将为披萨订购网站编写计费代码:
public
interface
BillingService
{
/**
*
Attempts
to
charge
the
order
to
the
credit
card.
Both
successful
and
*
failed
transactions
will
be
recorded.
*
*
@return
a
receipt
of
the
transaction.
If
the
charge
was
successful,
the
*
receipt
will
be
successful.
Otherwise,
the
receipt
will
contain
a
*
decline
note
describing
why
the
charge
failed.
*/
Receipt
chargeOrder
(
PizzaOrder
order
,
CreditCard
creditCar
【文件预览】:
guice-doc-master
----README.md(200KB)